Codechange: Move command arguments to the back of the networked command function calls.
This commit is contained in:
@@ -358,7 +358,7 @@ public:
|
||||
/* pause is only used in single-player, non-editor mode, non-menu mode. It
|
||||
* will be unpaused in the WE_DESTROY event handler. */
|
||||
if (_game_mode != GM_MENU && !_networking && _game_mode != GM_EDITOR) {
|
||||
DoCommandP(0, PM_PAUSED_SAVELOAD, 1, CMD_PAUSE);
|
||||
DoCommandP(CMD_PAUSE, 0, PM_PAUSED_SAVELOAD, 1);
|
||||
}
|
||||
SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, HT_NONE, WC_MAIN_WINDOW, 0);
|
||||
|
||||
@@ -402,7 +402,7 @@ public:
|
||||
{
|
||||
/* pause is only used in single-player, non-editor mode, non menu mode */
|
||||
if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
|
||||
DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE);
|
||||
DoCommandP(CMD_PAUSE, 0, PM_PAUSED_SAVELOAD, 0);
|
||||
}
|
||||
this->Window::Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user