mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 12:16:59 +00:00
MORTEVIELLE: Improve question cheat in debugger
This commit is contained in:
parent
de3566e82e
commit
be886b4e38
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user