# Delete a lot of obsolete simulation code.

This was SVN commit r7555.
This commit is contained in:
Ykkrosh
2010-05-20 18:09:23 +00:00
parent a78e6dbe26
commit 56bb858802
105 changed files with 381 additions and 11877 deletions
+3 -3
View File
@@ -65,14 +65,14 @@ void PopGuiPage(void* UNUSED(cbdata))
bool IsNewSimulation(void* UNUSED(cbdata))
{
return g_UseSimulation2;
return true; // XXX: delete this function
}
CScriptVal GuiInterfaceCall(void* cbdata, std::wstring name, CScriptVal data)
{
CGUIManager* guiManager = static_cast<CGUIManager*> (cbdata);
if (!g_UseSimulation2 || !g_Game)
if (!g_Game)
return JSVAL_VOID;
CSimulation2* sim = g_Game->GetSimulation2();
debug_assert(sim);
@@ -94,7 +94,7 @@ void PostNetworkCommand(void* cbdata, CScriptVal cmd)
{
CGUIManager* guiManager = static_cast<CGUIManager*> (cbdata);
if (!g_UseSimulation2 || !g_Game)
if (!g_Game)
return;
CSimulation2* sim = g_Game->GetSimulation2();
debug_assert(sim);