changeset 17935:1b0e2d81e31b draft

(svn r22740) -Fix [FS#4708]: Display the size of the leveled platform in the measurement tooltip of terraforming operations.
author frosch <frosch@openttd.org>
date Sat, 13 Aug 2011 10:44:15 +0000
parents e3bb6dadeb12
children 7dc99d42de4e
files src/viewport.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2789,8 +2789,8 @@
 				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;
 				}