Codechange: Un-bitstuff station/depot/waypoint commands.

This commit is contained in:
Michael Lutz
2021-11-14 16:39:17 +01:00
parent 21675ec7e2
commit 6fe445e6c0
28 changed files with 218 additions and 333 deletions

View File

@@ -1948,7 +1948,7 @@ struct StationViewWindow : public Window {
break;
case WID_SV_CLOSE_AIRPORT:
Command<CMD_OPEN_CLOSE_AIRPORT>::Post(0, this->window_number, 0, {});
Command<CMD_OPEN_CLOSE_AIRPORT>::Post(this->window_number);
break;
case WID_SV_TRAINS: // Show list of scheduled trains to this station
@@ -2085,7 +2085,7 @@ struct StationViewWindow : public Window {
{
if (str == nullptr) return;
Command<CMD_RENAME_STATION>::Post(STR_ERROR_CAN_T_RENAME_STATION, 0, this->window_number, 0, str);
Command<CMD_RENAME_STATION>::Post(STR_ERROR_CAN_T_RENAME_STATION, this->window_number, str);
}
void OnResize() override