mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- scenario pause command should work in network mode
This commit is contained in:
@@ -610,7 +610,7 @@ void ScriptManager::stopAllSound() {
|
||||
void ScriptManager::togglePauseGame(int pauseStatus) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugLUA).enabled) SystemFlags::OutputDebug(SystemFlags::debugLUA,"In [%s::%s Line: %d] pauseStatus = %d\n",__FILE__,__FUNCTION__,__LINE__,pauseStatus);
|
||||
ScriptManager_STREFLOP_Wrapper streflopWrapper;
|
||||
world->togglePauseGame((pauseStatus != 0));
|
||||
world->togglePauseGame((pauseStatus != 0),true);
|
||||
}
|
||||
|
||||
void ScriptManager::morphToUnit(int unitId,const string &morphName, int ignoreRequirements) {
|
||||
|
@@ -1071,8 +1071,8 @@ void World::moveToUnit(int unitId, int destUnitId) {
|
||||
}
|
||||
}
|
||||
|
||||
void World::togglePauseGame(bool pauseStatus) {
|
||||
game->setPaused(pauseStatus);
|
||||
void World::togglePauseGame(bool pauseStatus,bool forceAllowPauseStateChange) {
|
||||
game->setPaused(pauseStatus, forceAllowPauseStateChange);
|
||||
}
|
||||
|
||||
void World::addConsoleText(const string &text) {
|
||||
|
@@ -227,7 +227,7 @@ public:
|
||||
void stopStreamingSound(const string &playSound);
|
||||
void stopAllSound();
|
||||
void moveToUnit(int unitId, int destUnitId);
|
||||
void togglePauseGame(bool pauseStatus);
|
||||
void togglePauseGame(bool pauseStatus, bool forceAllowPauseStateChange);
|
||||
void addConsoleText(const string &text);
|
||||
void addConsoleTextWoLang(const string &text);
|
||||
|
||||
|
Reference in New Issue
Block a user