diff options
author | Strangerke | 2013-07-23 10:44:33 +0200 |
---|---|---|
committer | Strangerke | 2013-07-23 10:44:33 +0200 |
commit | be886b4e380a20aa6e3d06c98142bc4d0f604103 (patch) | |
tree | a203d1717a8b5274bf5f19b23f4388006d869607 /engines/mortevielle/utils.cpp | |
parent | de3566e82e4cf0db2e05c538bc3793389ad14e40 (diff) | |
download | scummvm-rg350-be886b4e380a20aa6e3d06c98142bc4d0f604103.tar.gz scummvm-rg350-be886b4e380a20aa6e3d06c98142bc4d0f604103.tar.bz2 scummvm-rg350-be886b4e380a20aa6e3d06c98142bc4d0f604103.zip |
MORTEVIELLE: Improve question cheat in debugger
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r-- | engines/mortevielle/utils.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index c9b40c475f..e07623bdb7 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2300,13 +2300,11 @@ void MortevielleEngine::prepareRoom() { updateHour(day, hour, minute); if (day != _day) { _day = day; - int i = 0; - do { - ++i; - if (_nbrepm[i] != 0) + for (int i = 0; i < 9; i++) { + if (_nbrepm[i] > 0) --_nbrepm[i]; _nbrep[i] = 0; - } while (i != 8); + } } if ((hour > _hour) || ((hour == 0) && (_hour == 23))) { _hour = hour; |