Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float posx = Metrics::MapMidPoint - mHeader.position.Y;
- float posy = Metrics::MapMidPoint + mHeader.position.X;
- float posz = mHeader.position.Z;
- mVertices.resize(145);
- uint32 counter = 0;
- for (int i = 0; i < 17; ++i) {
- for (int j = 0; j < (((i % 2) != 0) ? 8 : 9); ++j) {
- AdtVertex& v = mVertices[counter];
- v.x = posx + j * Metrics::UnitSize;
- v.y = posy - i * Metrics::UnitSize * 0.5f;
- if (i % 2) {
- v.x += 0.5f * Metrics::UnitSize;
- }
- v.z = heights[counter] + posz;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement