mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: use parameter pack/folding instead of va_arg macros for widget states
This commit is contained in:
+1
-2
@@ -350,8 +350,7 @@ struct BuildRoadToolbarWindow : Window {
|
||||
this->SetWidgetsDisabledState(!can_build,
|
||||
WID_ROT_DEPOT,
|
||||
WID_ROT_BUS_STATION,
|
||||
WID_ROT_TRUCK_STATION,
|
||||
WIDGET_LIST_END);
|
||||
WID_ROT_TRUCK_STATION);
|
||||
if (!can_build) {
|
||||
CloseWindowById(WC_BUS_STATION, TRANSPORT_ROAD);
|
||||
CloseWindowById(WC_TRUCK_STATION, TRANSPORT_ROAD);
|
||||
|
||||
Reference in New Issue
Block a user