From 688c80b0620ae5765355a4048864bb3de84ebf74 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 8 Nov 2003 15:47:51 +0000 Subject: 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 --- sword2/logic.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sword2/logic.cpp') 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(); } /** -- cgit v1.2.3