diff options
author | Torbjörn Andersson | 2003-11-04 18:02:49 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-11-04 18:02:49 +0000 |
commit | ba098a3a5b27967c5e3f629cb6e8a0dc453aded8 (patch) | |
tree | 54e9193bc66152082fdade1221b313c92aeb2ac7 /sword2/controls.cpp | |
parent | 64ec1907c2d99e7ecc46e0a5d5605e474c548248 (diff) | |
download | scummvm-rg350-ba098a3a5b27967c5e3f629cb6e8a0dc453aded8.tar.gz scummvm-rg350-ba098a3a5b27967c5e3f629cb6e8a0dc453aded8.tar.bz2 scummvm-rg350-ba098a3a5b27967c5e3f629cb6e8a0dc453aded8.zip |
Create g_logic dynamically. More moving of stuff into classes.
svn-id: r11129
Diffstat (limited to 'sword2/controls.cpp')
-rw-r--r-- | sword2/controls.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/controls.cpp b/sword2/controls.cpp index 3a93a3b410..cc224871ab 100644 --- a/sword2/controls.cpp +++ b/sword2/controls.cpp @@ -1295,7 +1295,7 @@ public: // fnRegisterMouse and fnRegisterFrame) g_sword2->resetMouseList(); - if (g_logic.processSession()) + if (g_logic->processSession()) error("restore 1st cycle failed??"); } } @@ -1446,7 +1446,7 @@ void Gui::restartControl(void) { // reopen global variables resource & send address to interpreter - // it won't be moving - g_logic.setGlobalInterpreterVariables((int32 *) (res_man->openResource(1) + sizeof(_standardHeader))); + g_logic->setGlobalInterpreterVariables((int32 *) (res_man->openResource(1) + sizeof(_standardHeader))); res_man->closeResource(1); DEMO = temp_demo_flag; @@ -1475,7 +1475,7 @@ void Gui::restartControl(void) { g_sword2->_thisScreen.scroll_flag = 2; - if (g_logic.processSession()) + if (g_logic->processSession()) error("restart 1st cycle failed??"); // So palette not restored immediately after control panel - we want |