# HG changeset patch # User frosch # Date 2011-08-13 10:44:15 # Node ID ed0c3ec5ab978ee01de3bdd0291b248a723b2457 # Parent 7ba034dccde9031a5803c7d87a52b9674a71e0f5 (svn r22740) -Fix [FS#4708]: Display the size of the leveled platform in the measurement tooltip of terraforming operations. diff --git a/src/viewport.cpp b/src/viewport.cpp --- 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; }