cleaned up the restart/pause/shutdown situation a bit; added comment that explains how restart might be implemented
svn-id: r8260
This commit is contained in:
parent
88f1a4e27c
commit
4292d621af
6 changed files with 60 additions and 28 deletions
|
@ -1478,13 +1478,19 @@ void Scumm_v5::o5_putActorInRoom() {
|
|||
}
|
||||
|
||||
void Scumm_v5::o5_quitPauseRestart() {
|
||||
switch (fetchScriptByte()) {
|
||||
case 1:
|
||||
pauseGame(false);
|
||||
byte subOp = fetchScriptByte();
|
||||
switch (subOp) {
|
||||
case 1: // Restart
|
||||
restart();
|
||||
break;
|
||||
case 3:
|
||||
shutDown(0);
|
||||
case 2: // Pause
|
||||
pauseGame();
|
||||
break;
|
||||
case 3: // Quit
|
||||
shutDown();
|
||||
break;
|
||||
default:
|
||||
error("o5_quitPauseRestart invalid case %d\n", subOp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue