aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalot.cpp
diff options
context:
space:
mode:
authoruruk2013-08-21 13:45:22 +0200
committeruruk2013-08-21 13:45:22 +0200
commit44f7802777df8b3dce2eaa25b66bfe0d0f094bdf (patch)
treeb7ec56106df0439b991cf5648ad6be2bdf346f3f /engines/avalanche/avalot.cpp
parentf8796e720eea8122bf7ecef7f1dcd75c39b75a97 (diff)
downloadscummvm-rg350-44f7802777df8b3dce2eaa25b66bfe0d0f094bdf.tar.gz
scummvm-rg350-44f7802777df8b3dce2eaa25b66bfe0d0f094bdf.tar.bz2
scummvm-rg350-44f7802777df8b3dce2eaa25b66bfe0d0f094bdf.zip
AVALANCHE: Rename Gyro::reloaded to Gyro::isLoaded. Repair a bug in the original engine regarding timing of animations/scrolls/etc. when loading a savegame using this variable.
Diffstat (limited to 'engines/avalanche/avalot.cpp')
-rw-r--r--engines/avalanche/avalot.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 9cf66606ab..cb73123d2e 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -192,14 +192,12 @@ void Avalot::setup() {
int16 loadSlot = Common::ConfigManager::instance().getInt("save_slot");
if (loadSlot >= 0) {
_vm->loadGame(loadSlot);
-
- _vm->_gyro->reloaded = true;
} else
- _vm->_gyro->reloaded = false;
+ _vm->_gyro->isLoaded = false; // Set to true in _vm->loadGame().
- if (!_vm->_gyro->reloaded) {
+ if (!_vm->_gyro->isLoaded) {
_vm->_gyro->newgame(); // No game was requested- load the default.
_vm->_gyro->soundfx = ! _vm->_gyro->soundfx;