summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-08-13 10:44:15 +0000
committerfrosch <frosch@openttd.org>2011-08-13 10:44:15 +0000
commit233065a5d8e9047dee0feb4c58f96bf7bc89059a (patch)
tree63129fe261edc2fce87cb12cc14c46fe6a01cb95 /src/viewport.cpp
parent92e701c6ed075167d272137647f677d337759dde (diff)
downloadopenttd-233065a5d8e9047dee0feb4c58f96bf7bc89059a.tar.xz
(svn r22740) -Fix [FS#4708]: Display the size of the leveled platform in the measurement tooltip of terraforming operations.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index e0996c786..f73f5f817 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2789,8 +2789,8 @@ calc_heightdiff_single_direction:;
if (dx != 1 || dy != 1) {
int heightdiff = CalcHeightdiff(style, 0, t0, t1);
- params[index++] = dx;
- params[index++] = dy;
+ params[index++] = dx - (style & HT_POINT ? 1 : 0);
+ params[index++] = dy - (style & HT_POINT ? 1 : 0);
if (heightdiff != 0) params[index++] = heightdiff;
}