diff options
author | Strangerke | 2015-12-14 13:19:21 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:05 +0100 |
commit | 1d027704e0b3f75fa176d64a77f4744dd1ea3ee5 (patch) | |
tree | 3414cc612131b70302e592166a50b2f4c1bc4e95 /engines/lab | |
parent | 21e6f40301f358e8c16b3ed6ff32698cc5be6e9c (diff) | |
download | scummvm-rg350-1d027704e0b3f75fa176d64a77f4744dd1ea3ee5.tar.gz scummvm-rg350-1d027704e0b3f75fa176d64a77f4744dd1ea3ee5.tar.bz2 scummvm-rg350-1d027704e0b3f75fa176d64a77f4744dd1ea3ee5.zip |
LAB: Fix mouse cursor after save/load
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/savegame.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lab/savegame.cpp b/engines/lab/savegame.cpp index 957bfdbf58..99382e95f9 100644 --- a/engines/lab/savegame.cpp +++ b/engines/lab/savegame.cpp @@ -39,6 +39,7 @@ #include "lab/lab.h" #include "lab/dispman.h" +#include "lab/eventman.h" #include "lab/labsets.h" #include "lab/music.h" #include "lab/processroom.h" @@ -122,7 +123,6 @@ bool readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &header) { * Writes the game out to disk. */ bool LabEngine::saveGame(int slot, Common::String desc) { - uint16 i; Common::String fileName = generateSaveFileName(slot); Common::SaveFileManager *saveFileManager = g_system->getSavefileManager(); Common::OutSaveFile *file = saveFileManager->openForSaving(fileName); @@ -140,17 +140,17 @@ bool LabEngine::saveGame(int slot, Common::String desc) { file->writeUint16LE(getQuarters()); // Conditions - for (i = 0; i < _conditions->_lastElement / (8 * 2); i++) + for (int i = 0; i < _conditions->_lastElement / (8 * 2); i++) file->writeUint16LE(_conditions->_array[i]); // Rooms found - for (i = 0; i < _roomsFound->_lastElement / (8 * 2); i++) + for (int i = 0; i < _roomsFound->_lastElement / (8 * 2); i++) file->writeUint16LE(_roomsFound->_array[i]); _tilePuzzle->save(file); // Breadcrumbs - for (i = 0; i < sizeof(_breadCrumbs); i++) { + for (int i = 0; i < sizeof(_breadCrumbs); i++) { file->writeUint16LE(_breadCrumbs[i]._roomNum); file->writeUint16LE(_breadCrumbs[i]._direction); } @@ -245,6 +245,7 @@ bool LabEngine::saveRestoreGame() { _alternate = false; _mainDisplay = true; + _event->initMouse(); _graphics->screenUpdate(); return isOK; |