From 821be47a6072ebb465ba7b753ed42beb01220e23 Mon Sep 17 00:00:00 2001 From: cakepie Date: Sat, 3 Dec 2022 00:12:09 +0800 Subject: [PATCH] Departure boards: cleanup: move misplaced comment --- src/departures_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/departures_gui.cpp b/src/departures_gui.cpp index 98174d359e..4172eada4c 100644 --- a/src/departures_gui.cpp +++ b/src/departures_gui.cpp @@ -337,11 +337,11 @@ public: } else { 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]); + /* We need to redraw the button that was pressed. */ this->SetWidgetDirty(widget); } /* We need to recompute the departures list. */ this->RefreshVehicleList(); - /* We need to redraw the button that was pressed. */ if (_pause_mode != PM_UNPAUSED) this->OnGameTick(); break; }