Codechange: enum-class-ify Commands

This commit is contained in:
Rubidium
2026-01-28 23:32:51 +01:00
committed by rubidium42
parent 014bf7e750
commit 4adf494ebc
139 changed files with 890 additions and 890 deletions
+2 -2
View File
@@ -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