Fix viewport tooltips not being cleared when scrolling using the keyboard.

Fix documentation typo.
This commit is contained in:
Jonathan G Rennison
2017-04-26 20:25:50 +01:00
parent c41bf4b468
commit d94e37d9d1
4 changed files with 25 additions and 4 deletions

View File

@@ -217,7 +217,7 @@ void ShowTooltipForTile(Window *w, const TileIndex tile)
case MP_HOUSE: {
if (HasBit(_display_opt, DO_SHOW_TOWN_NAMES)) return; // No need for a town name tooltip when it is already displayed
SetDParam(0, GetTownIndex(tile));
GuiShowTooltips(w, STR_TOWN_NAME_TOOLTIP, 0, NULL, TCC_HOVER);
GuiShowTooltips(w, STR_TOWN_NAME_TOOLTIP, 0, NULL, TCC_HOVER_VIEWPORT);
break;
}
case MP_INDUSTRY: {
@@ -235,7 +235,7 @@ void ShowTooltipForTile(Window *w, const TileIndex tile)
str++;
}
}
GuiShowTooltips(w, str, 0, NULL, TCC_HOVER);
GuiShowTooltips(w, str, 0, NULL, TCC_HOVER_VIEWPORT);
break;
}
default: