summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-06 15:20:29 +0100
committerErich Eckner <git@eckner.net>2018-11-16 19:11:47 +0100
commit7bd8e6c67f1caac99c9aadca791b7edad63d52e7 (patch)
tree688b23daa70fd31bd7f01df10fd34f2730b5dcda /src/misc_gui.cpp
parentd9c55606116b45ddc464044f16cbc724c50ef793 (diff)
downloadopenttd-7bd8e6c67f1caac99c9aadca791b7edad63d52e7.tar.xz
fix the coordinates in the "help area" for underground tiles
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index e23da4293..0eccb0c12 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -213,10 +213,11 @@ public:
/* Location */
char tmp[16];
seprintf(tmp, lastof(tmp), "0x%.4X", tile);
- SetDParam(0, TileX(tile));
- SetDParam(1, TileY(tile));
+ SetDParam(0, LayerX(tile));
+ SetDParam(1, LayerY(tile));
SetDParam(2, GetTileZ(tile));
- SetDParamStr(3, tmp);
+ SetDParam(3, LayerIndex(tile));
+ SetDParamStr(4, tmp);
GetString(this->landinfo_data[line_nr], STR_LAND_AREA_INFORMATION_LANDINFO_COORDS, lastof(this->landinfo_data[line_nr]));
line_nr++;