Fix height above sea-level in measurement tool.

This commit is contained in:
Jonathan G Rennison
2017-03-31 12:11:20 +01:00
parent ab498dc0ba
commit 0172f3acab

View File

@@ -3055,7 +3055,7 @@ calc_heightdiff_single_direction:;
} }
params[index++] = DistanceFromEdge(t1); params[index++] = DistanceFromEdge(t1);
params[index++] = GetTileMaxZ(t1) / TILE_HEIGHT * TILE_HEIGHT_STEP; params[index++] = GetTileMaxZ(t1) * TILE_HEIGHT_STEP;
params[index++] = heightdiff; params[index++] = heightdiff;
//Show always the measurement tooltip //Show always the measurement tooltip
GuiShowTooltips(_thd.GetCallbackWnd(),STR_MEASURE_DIST_HEIGHTDIFF, index, params, TCC_LEFT_CLICK); GuiShowTooltips(_thd.GetCallbackWnd(),STR_MEASURE_DIST_HEIGHTDIFF, index, params, TCC_LEFT_CLICK);