diff options
author | Gregory Montoir | 2006-03-16 20:29:07 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-03-16 20:29:07 +0000 |
commit | 61a5fb70649c4b73f5e2d7b4d88b87222f79a4b7 (patch) | |
tree | 5f5357217e9e0aac66c1100a67f70fb42eb0e66c /engines/cine/cine.cpp | |
parent | 99c34b037717f1062cb79e9cb6f3f3570977f4b6 (diff) | |
download | scummvm-rg350-61a5fb70649c4b73f5e2d7b4d88b87222f79a4b7.tar.gz scummvm-rg350-61a5fb70649c4b73f5e2d7b4d88b87222f79a4b7.tar.bz2 scummvm-rg350-61a5fb70649c4b73f5e2d7b4d88b87222f79a4b7.zip |
- 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
Diffstat (limited to 'engines/cine/cine.cpp')
-rw-r--r-- | engines/cine/cine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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 |