From 61a5fb70649c4b73f5e2d7b4d88b87222f79a4b7 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 16 Mar 2006 20:29:07 +0000 Subject: - added defines to handle the different mouse cursors - revised the way NUM_MAX_PARTDATA and NUM_MAX_ANIMDATA are used - renamed some variables - constify'ed function arguments - minor cleanup svn-id: r21338 --- engines/cine/cine.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/cine/cine.cpp') diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index b874ca3501..4cd29923a4 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -197,8 +197,10 @@ static void initialize() { textDataPtr = (uint8 *)malloc(8000); - partBuffer = (PartBuffer *)malloc(255 * sizeof(PartBuffer)); + partBuffer = (PartBuffer *)malloc(NUM_MAX_PARTDATA * sizeof(PartBuffer)); + animDataTable = (AnimData *)malloc(NUM_MAX_ANIMDATA * sizeof(AnimData)); + loadTextData("texte.dat", textDataPtr); if (gameType == Cine::GID_FW) snd_loadBasesonEntries("BASESON.SND"); @@ -235,7 +237,7 @@ static void initialize() { relTable[i].obj2Param = 0; } - for (i = 0; i < NUM_MAX_PARTDATA; i++) { + for (i = 0; i < NUM_MAX_ANIMDATA; i++) { animDataTable[i].ptr1 = NULL; animDataTable[i].ptr2 = NULL; } @@ -262,7 +264,7 @@ static void initialize() { loadPrc(BOOT_PRC_NAME); strcpy(currentPrcName, BOOT_PRC_NAME); - setMouseCursor(0); + setMouseCursor(MOUSE_CURSOR_NORMAL); } } // End of namespace Cine -- cgit v1.2.3