summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-01-04 13:58:14 +0000
committerfrosch <frosch@openttd.org>2011-01-04 13:58:14 +0000
commit6a38f88bd1f62cfa7a5459dfca670d6f09d4c8f1 (patch)
tree76d15f42434da85187e61a76d214164eb4906aa0
parent1b61d234a15115144c84e2dc94499afea48b7f21 (diff)
downloadopenttd-6a38f88bd1f62cfa7a5459dfca670d6f09d4c8f1.tar.xz
(svn r21711) -Change: Display the minimal height of the tile in the LandInfo window instead of the height of the northern corner. So it is more useful for NewGRF and AI developers, and maybe more transparent for players.
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 406776376..9181cd618 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -199,7 +199,7 @@ public:
snprintf(tmp, lengthof(tmp), "0x%.4X", tile);
SetDParam(0, TileX(tile));
SetDParam(1, TileY(tile));
- SetDParam(2, TileHeight(tile));
+ SetDParam(2, GetTileZ(tile) / TILE_HEIGHT);
SetDParamStr(3, tmp);
GetString(this->landinfo_data[line_nr], STR_LAND_AREA_INFORMATION_LANDINFO_COORDS, lastof(this->landinfo_data[line_nr]));
line_nr++;