mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 01:27:12 +00:00
# Partial support for saved games with AI.
Support cancelling loads while inside a loader callback. Fix use of ArchiveReader/Writer since their API changed. Improve error-detection in deserializer to avoid crashes. Report deserializer errors to users. Expand load-error message box to fit message about invalid saved games. This was SVN commit r10787.
This commit is contained in:
@@ -638,8 +638,7 @@ ScriptInterface& CSimulation2::GetScriptInterface() const
|
||||
|
||||
void CSimulation2::InitGame(const CScriptVal& data)
|
||||
{
|
||||
CScriptVal ret; // ignored
|
||||
GetScriptInterface().CallFunction(GetScriptInterface().GetGlobalObject(), "InitGame", data, ret);
|
||||
GetScriptInterface().CallFunctionVoid(GetScriptInterface().GetGlobalObject(), "InitGame", data);
|
||||
}
|
||||
|
||||
void CSimulation2::Update(int turnLength)
|
||||
|
||||
Reference in New Issue
Block a user