mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 14:32:31 +00:00
Properly handle auto-research promotion techs at game start.
This was SVN commit r16009.
This commit is contained in:
@@ -649,12 +649,12 @@ ScriptInterface& CSimulation2::GetScriptInterface() const
|
||||
return m->m_ComponentManager.GetScriptInterface();
|
||||
}
|
||||
|
||||
void CSimulation2::ReplaceSkirmishGlobals()
|
||||
void CSimulation2::PreInitGame()
|
||||
{
|
||||
JSContext* cx = GetScriptInterface().GetContext();
|
||||
JSAutoRequest rq(cx);
|
||||
JS::RootedValue global(cx, GetScriptInterface().GetGlobalObject());
|
||||
GetScriptInterface().CallFunctionVoid(global, "ReplaceSkirmishGlobals");
|
||||
GetScriptInterface().CallFunctionVoid(global, "PreInitGame");
|
||||
}
|
||||
|
||||
void CSimulation2::InitGame(const CScriptVal& data)
|
||||
|
||||
Reference in New Issue
Block a user