Codechange: Template script command calls.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "../../ai/ai_gui.hpp"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../network/network.h"
|
||||
#include "../../misc_cmd.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
@@ -59,7 +60,7 @@
|
||||
ShowAIDebugWindow(ScriptObject::GetRootCompany());
|
||||
|
||||
if ((_pause_mode & PM_PAUSED_NORMAL) == PM_UNPAUSED) {
|
||||
ScriptObject::DoCommand(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE);
|
||||
ScriptObject::Command<CMD_PAUSE>::Do(0, PM_PAUSED_NORMAL, 1, {});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user