| 809 | } |
| 810 | |
| 811 | static void GetPosArray(AutoArray<Vector3>& tgt, const ParamEntry& cfg) |
| 812 | { |
| 813 | tgt.Resize(0); |
| 814 | for (int i = 0; i < cfg.GetSize() - 1; i += 2) |
| 815 | { |
| 816 | float x = cfg[i]; |
| 817 | float z = cfg[i + 1]; |
| 818 | float y = GLandscape->SurfaceYAboveWater(x, z); |
| 819 | Vector3& pos = tgt[tgt.Add()]; |
| 820 | pos = Vector3(x, y, z); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | void World::InitLandscape(Landscape* landscape) |
| 825 | { |
no test coverage detected