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:
Max Horn 2003-06-02 02:25:24 +00:00
parent 88f1a4e27c
commit 4292d621af
6 changed files with 60 additions and 28 deletions

View file

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