SCI: kGameIsRestarting returns 2 when we restored
fixes castle of dr. brain save issue in puzzle room, fixes island of dr. brain save issue when saving in first room svn-id: r51538
This commit is contained in:
parent
fd7bc29536
commit
2d76fe0092
4 changed files with 14 additions and 5 deletions
|
@ -46,11 +46,11 @@ reg_t kRestartGame(EngineState *s, int argc, reg_t *argv) {
|
|||
** Returns the restarting_flag in acc
|
||||
*/
|
||||
reg_t kGameIsRestarting(EngineState *s, int argc, reg_t *argv) {
|
||||
s->r_acc = make_reg(0, s->gameWasRestarted);
|
||||
s->r_acc = make_reg(0, s->gameIsRestarting);
|
||||
|
||||
if (argc) { // Only happens during replay
|
||||
if (!argv[0].toUint16()) // Set restarting flag
|
||||
s->gameWasRestarted = false;
|
||||
s->gameIsRestarting = GAMEISRESTARTING_NONE;
|
||||
}
|
||||
|
||||
uint32 neededSleep = 30;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue