Flip tree map x to match heightmaps

This commit is contained in:
dP
2020-07-21 21:40:07 +03:00
parent 268145c797
commit c8f53f37fc

View File

@@ -82,7 +82,7 @@ bool ConTreeMap(byte argc, char *argv[]) {
}
for (TileIndex tile = 0; tile < MapSize(); tile++) {
auto mx = x * TileX(tile) / MapSizeX();
auto mx = x - x * TileX(tile) / MapSizeX() - 1;
auto my = y * TileY(tile) / MapSizeY();
auto t = map[mx + my * x];
auto tree_count = min(t / 51, 4);