mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: enum-class-ify Commands
This commit is contained in:
+2
-2
@@ -1998,7 +1998,7 @@ struct StationViewWindow : public Window {
|
||||
break;
|
||||
|
||||
case WID_SV_CLOSE_AIRPORT:
|
||||
Command<CMD_OPEN_CLOSE_AIRPORT>::Post(this->window_number);
|
||||
Command<Commands::OpenCloseAirport>::Post(this->window_number);
|
||||
break;
|
||||
|
||||
case WID_SV_TRAINS: // Show list of scheduled trains to this station
|
||||
@@ -2135,7 +2135,7 @@ struct StationViewWindow : public Window {
|
||||
{
|
||||
if (!str.has_value()) return;
|
||||
|
||||
Command<CMD_RENAME_STATION>::Post(STR_ERROR_CAN_T_RENAME_STATION, this->window_number, *str);
|
||||
Command<Commands::RenameStation>::Post(STR_ERROR_CAN_T_RENAME_STATION, this->window_number, *str);
|
||||
}
|
||||
|
||||
void OnResize() override
|
||||
|
||||
Reference in New Issue
Block a user