Fix tunnel build viewport length tooltip when hover mode is right click

This commit is contained in:
Jonathan G Rennison
2019-03-11 20:01:29 +00:00
parent 2bd33c1869
commit 828a4399f9
3 changed files with 3 additions and 1 deletions

View File

@@ -3783,7 +3783,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to)
_thd.next_drawstyle = HT_RECT;
/* show measurement only if there is any length to speak of */
if (distance > 1) ShowMeasurementTooltips(STR_MEASURE_LENGTH, 1, &distance, TCC_HOVER);
if (distance > 1) ShowMeasurementTooltips(STR_MEASURE_LENGTH, 1, &distance, _settings_client.gui.hover_delay_ms == 0 ? TCC_NEXT_LOOP : TCC_HOVER);
}
static void VpStartPreSizing()