aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo/file.cpp')
-rw-r--r--engines/hugo/file.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp
index 09d0272519..be1ba89fce 100644
--- a/engines/hugo/file.cpp
+++ b/engines/hugo/file.cpp
@@ -43,6 +43,7 @@
#include "hugo/util.h"
#include "hugo/object.h"
#include "hugo/text.h"
+#include "hugo/mouse.h"
namespace Hugo {
FileManager::FileManager(HugoEngine *vm) : _vm(vm) {
@@ -367,7 +368,7 @@ bool FileManager::saveGame(const int16 slot, const Common::String descrip) {
out->writeByte((gameStatus.storyModeFl) ? 1 : 0);
// Save jumpexit mode
- out->writeByte((gameStatus.jumpExitFl) ? 1 : 0);
+ out->writeByte((_vm->_mouse->getJumpExitFl()) ? 1 : 0);
// Save gameover status
out->writeByte((gameStatus.gameOverFl) ? 1 : 0);
@@ -477,7 +478,7 @@ bool FileManager::restoreGame(const int16 slot) {
_vm->setScore(score);
gameStatus.storyModeFl = (in->readByte() == 1);
- gameStatus.jumpExitFl = (in->readByte() == 1);
+ _vm->_mouse->setJumpExitFl(in->readByte() == 1);
gameStatus.gameOverFl = (in->readByte() == 1);
for (int i = 0; i < _vm->_numScreens; i++)
_vm->_screenStates[i] = in->readByte();