Fix highlight of adjacent rail/road waypoints when only one waypoint type

This commit is contained in:
Jonathan G Rennison
2023-05-26 19:38:17 +01:00
parent fd4d4d341d
commit 42b3c5fe25
2 changed files with 10 additions and 0 deletions

View File

@@ -847,6 +847,11 @@ struct BuildRoadToolbarWindow : Window {
return ES_NOT_HANDLED;
}
void OnRealtimeTick(uint delta_ms) override
{
if (this->IsWidgetLowered(WID_ROT_BUILD_WAYPOINT)) CheckRedrawWaypointCoverage(this, true);
}
static HotkeyList road_hotkeys;
static HotkeyList tram_hotkeys;
};