MORTEVIELLE: Improve question cheat in debugger

This commit is contained in:
Strangerke 2013-07-23 10:44:33 +02:00
parent de3566e82e
commit be886b4e38
3 changed files with 10 additions and 7 deletions

View File

@ -38,6 +38,11 @@ bool Debugger::Cmd_showAllQuestions(int argc, const char **argv) {
for (int i = 1; i <= 42; ++i)
_vm->_coreVar._availableQuestion[i] = '*';
for (int i = 0; i < 9; i++) {
_vm->_nbrep[i] = 0;
_vm->_nbrepm[i] = 999;
}
return true;
}

View File

@ -285,8 +285,6 @@ private:
byte *_cfiecBuffer;
int _cfiecBufferSize;
int _openObjects[8];
int _nbrep[9];
int _nbrepm[9];
uint16 _dialogIndexArray[kMaxDialogIndex + 1];
Hint _dialogHintArray[kMaxDialogHint + 1];
@ -471,6 +469,8 @@ public:
int _key;
SaveStruct _coreVar, _saveStruct;
int _nbrep[9];
int _nbrepm[9];
int _maff;
int _caff;
int _crep;

View File

@ -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;