mirror of
https://github.com/glest/glest-source.git
synced 2025-10-04 03:11:53 +02:00
attempt to fix morph out of synch
This commit is contained in:
@@ -3019,6 +3019,9 @@ void ScriptManager::saveGame(XmlNode *rootNode) {
|
||||
unRegisterCellTriggerEventListNode->addAttribute("eventId",intToStr(unRegisterCellTriggerEventList[i]), mapTagReplacements);
|
||||
}
|
||||
|
||||
scriptManagerNode->addAttribute("registeredDayNightEvent",intToStr(registeredDayNightEvent), mapTagReplacements);
|
||||
scriptManagerNode->addAttribute("lastDayNightTriggerStatus",intToStr(lastDayNightTriggerStatus), mapTagReplacements);
|
||||
|
||||
luaScript.saveGame(scriptManagerNode);
|
||||
}
|
||||
|
||||
@@ -3129,6 +3132,13 @@ void ScriptManager::loadGame(const XmlNode *rootNode) {
|
||||
unRegisterCellTriggerEventList.push_back(node->getAttribute("eventId")->getIntValue());
|
||||
}
|
||||
|
||||
if(scriptManagerNode->hasAttribute("registeredDayNightEvent") == true) {
|
||||
registeredDayNightEvent = scriptManagerNode->getAttribute("registeredDayNightEvent")->getIntValue() != 0;
|
||||
}
|
||||
if(scriptManagerNode->hasAttribute("lastDayNightTriggerStatus") == true) {
|
||||
lastDayNightTriggerStatus = scriptManagerNode->getAttribute("lastDayNightTriggerStatus")->getIntValue();
|
||||
}
|
||||
|
||||
luaScript.loadGame(scriptManagerNode);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user