Advertisement
Guest User

Untitled

a guest
Dec 25th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.     while (tile_count < _height_map.size_x * _height_map.size_y * 2 / 3 && cur_height <= highest_height) {
  2.         for (int y = 0; y < _height_map.size_y; y++) {
  3.             for (int x = 0; x < _height_map.size_x; x++) {
  4.                 if (GetTileZ(TileXY(x, y)) == cur_height) tile_count++;
  5.             }
  6.         }
  7.         cur_height++;
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement