From 679afa362e5c5733aa0f34b73598e7db48d74f7a Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 4 Jan 2011 13:58:14 +0000 Subject: [PATCH] (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. --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 4067763769..9181cd618e 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++;