Codechange: Move command arguments to the back of the networked command function calls.
This commit is contained in:
@@ -566,7 +566,7 @@ protected:
|
||||
this->SetTimeout();
|
||||
this->SetWidgetDirty(WID_SB_PAGE_PANEL);
|
||||
|
||||
DoCommandP(0, pe.index, 0, CMD_STORY_PAGE_BUTTON);
|
||||
DoCommandP(CMD_STORY_PAGE_BUTTON, 0, pe.index, 0);
|
||||
break;
|
||||
|
||||
case SPET_BUTTON_TILE:
|
||||
@@ -921,7 +921,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
DoCommandP(tile, pe->index, 0, CMD_STORY_PAGE_BUTTON);
|
||||
DoCommandP(CMD_STORY_PAGE_BUTTON, tile, pe->index, 0);
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
|
||||
@@ -940,7 +940,7 @@ public:
|
||||
VehicleType wanted_vehtype = data.GetVehicleType();
|
||||
if (wanted_vehtype != VEH_INVALID && wanted_vehtype != v->type) return false;
|
||||
|
||||
DoCommandP(0, pe->index, v->index, CMD_STORY_PAGE_BUTTON);
|
||||
DoCommandP(CMD_STORY_PAGE_BUTTON, 0, pe->index, v->index);
|
||||
ResetObjectToPlace();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user