aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 2eb939b018..11249eca24 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -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);
}
}