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

pull/544/head
Jonathan G Rennison 1 year ago
parent fd4d4d341d
commit 42b3c5fe25

@ -932,6 +932,11 @@ struct BuildRailToolbarWindow : Window {
return ES_NOT_HANDLED;
}
void OnRealtimeTick(uint delta_ms) override
{
if (this->IsWidgetLowered(WID_RAT_BUILD_WAYPOINT)) CheckRedrawWaypointCoverage(this, false);
}
static HotkeyList hotkeys;
};

@ -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;
};

Loading…
Cancel
Save