diff options
author | urukgit | 2013-11-05 21:12:50 +0100 |
---|---|---|
committer | urukgit | 2013-11-05 21:12:50 +0100 |
commit | b041e322a4a9533be3ee0a35d8b4e51c47f17eda (patch) | |
tree | 81f9662d9e032e8202aeb9587a9068e170aab558 /engines/avalanche/timer.cpp | |
parent | e9c5265d45dd83913fb4d65b8980fbf504252ff7 (diff) | |
download | scummvm-rg350-b041e322a4a9533be3ee0a35d8b4e51c47f17eda.tar.gz scummvm-rg350-b041e322a4a9533be3ee0a35d8b4e51c47f17eda.tar.bz2 scummvm-rg350-b041e322a4a9533be3ee0a35d8b4e51c47f17eda.zip |
AVALANCHE: Repair display of playtime.
Diffstat (limited to 'engines/avalanche/timer.cpp')
-rw-r--r-- | engines/avalanche/timer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/avalanche/timer.cpp b/engines/avalanche/timer.cpp index 4e90c7fe48..a62a263695 100644 --- a/engines/avalanche/timer.cpp +++ b/engines/avalanche/timer.cpp @@ -48,7 +48,7 @@ Timer::Timer(AvalancheEngine *vm) { * @remarks Originally called 'set_up_timer' */ void Timer::addTimer(int32 duration, byte action, byte reason) { - if ((_vm->_isLoaded == false) || (_timerLost == true)) { + if ((_vm->_ableToAddTimer == false) || (_timerLost == true)) { byte i = 0; while ((i < 7) && (_times[i]._timeLeft != 0)) i++; @@ -61,7 +61,7 @@ void Timer::addTimer(int32 duration, byte action, byte reason) { _times[i]._action = action; _times[i]._reason = reason; } else { - _vm->_isLoaded = false; + _vm->_ableToAddTimer = false; return; } } @@ -208,8 +208,8 @@ void Timer::updateTimer() { } } } - _vm->_roomTime++; // Cycles since you've been in this room. - _vm->_totalTime++; // Total amount of time for this game. + + _vm->_roomCycles++; // Cycles since you've been in this room. } void Timer::loseTimer(byte which) { |