Departure boards: cleanup: move misplaced comment

This commit is contained in:
cakepie
2022-12-03 00:12:09 +08:00
committed by GitHub
parent 87aa379aa9
commit 821be47a60

View File

@@ -337,11 +337,11 @@ public:
} else { } else {
this->show_types[widget - WID_DB_SHOW_TRAINS] = !this->show_types[widget - WID_DB_SHOW_TRAINS]; this->show_types[widget - WID_DB_SHOW_TRAINS] = !this->show_types[widget - WID_DB_SHOW_TRAINS];
this->SetWidgetLoweredState(widget, this->show_types[widget - WID_DB_SHOW_TRAINS]); this->SetWidgetLoweredState(widget, this->show_types[widget - WID_DB_SHOW_TRAINS]);
/* We need to redraw the button that was pressed. */
this->SetWidgetDirty(widget); this->SetWidgetDirty(widget);
} }
/* We need to recompute the departures list. */ /* We need to recompute the departures list. */
this->RefreshVehicleList(); this->RefreshVehicleList();
/* We need to redraw the button that was pressed. */
if (_pause_mode != PM_UNPAUSED) this->OnGameTick(); if (_pause_mode != PM_UNPAUSED) this->OnGameTick();
break; break;
} }