aboutsummaryrefslogtreecommitdiff
path: root/sword2/logic.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-11-08 15:47:51 +0000
committerTorbjörn Andersson2003-11-08 15:47:51 +0000
commit688c80b0620ae5765355a4048864bb3de84ebf74 (patch)
tree497d8efc73b08f5a4d58c45c52b7a6bafa1975ff /sword2/logic.cpp
parentb04ddef7506bfa08527da9e79040c583fb765b2e (diff)
downloadscummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.tar.gz
scummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.tar.bz2
scummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.zip
Moved more stuff into classes, changed some static allocation to dynamic,
and removed some of the references to global variables. At this point I believe everything in the main game engine has been moved into classes - not necessarily the correct ones, but still... However, there is some stuff in the driver directory that need to be taken care of as well. svn-id: r11207
Diffstat (limited to 'sword2/logic.cpp')
-rw-r--r--sword2/logic.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/logic.cpp b/sword2/logic.cpp
index 3dd94a7af6..0e39af8b72 100644
--- a/sword2/logic.cpp
+++ b/sword2/logic.cpp
@@ -185,7 +185,7 @@ int Logic::processSession(void) {
// clear any syncs that were waiting for this character - it
// has used them or now looses them
- Clear_syncs(ID);
+ clearSyncs(ID);
if (_pc != 0xffffffff) {
// the session is still valid so run the service script
@@ -232,16 +232,16 @@ void Logic::expressChangeSession(uint32 sesh_id) {
// in theory sync waiting in the list could be left behind and never
// removed - so we trash the lot
- Init_sync_system();
+ memset(_syncList, 0, sizeof(_syncList));
// reset walkgrid list (see fnRegisterWalkGrid)
- router.clearWalkGridList();
+ _router->clearWalkGridList();
// stops all fx & clears the queue
- g_sword2->clearFxQueue();
+ _vm->clearFxQueue();
// free all the route memory blocks from previous game
- router.freeAllRouteMem();
+ _router->freeAllRouteMem();
}
/**