Codechange: Move command arguments to the back of the networked command function calls.
This commit is contained in:
@@ -1947,7 +1947,7 @@ struct StationViewWindow : public Window {
|
||||
break;
|
||||
|
||||
case WID_SV_CLOSE_AIRPORT:
|
||||
DoCommandP(0, this->window_number, 0, CMD_OPEN_CLOSE_AIRPORT);
|
||||
DoCommandP(CMD_OPEN_CLOSE_AIRPORT, 0, this->window_number, 0);
|
||||
break;
|
||||
|
||||
case WID_SV_TRAINS: // Show list of scheduled trains to this station
|
||||
@@ -2084,7 +2084,7 @@ struct StationViewWindow : public Window {
|
||||
{
|
||||
if (str == nullptr) return;
|
||||
|
||||
DoCommandP(0, this->window_number, 0, CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), nullptr, str);
|
||||
DoCommandP(CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), 0, this->window_number, 0, str);
|
||||
}
|
||||
|
||||
void OnResize() override
|
||||
|
Reference in New Issue
Block a user