From 9d589e2e8e7bce5cf2494d1ee74a235588980dd1 Mon Sep 17 00:00:00 2001 From: antoniou79 Date: Tue, 20 Feb 2024 14:09:20 +0200 Subject: [PATCH] M4: ORIONBURGER: DEMO: Cliking on teleporter icon leads to main menu Testing with the original interactive Demo (via DosBox) verifies clicking on that icon leads to main menu --- engines/m4/burger/rooms/section6/section6.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engines/m4/burger/rooms/section6/section6.cpp b/engines/m4/burger/rooms/section6/section6.cpp index 8ba7d93c771..e482acf450f 100644 --- a/engines/m4/burger/rooms/section6/section6.cpp +++ b/engines/m4/burger/rooms/section6/section6.cpp @@ -317,7 +317,6 @@ void Section6::daemon() { _G(wilbur_should) = 6002; series_play_with_breaks(PLAY1, "604melt", 0x999, kCHANGE_WILBUR_ANIMATION, _G(executing) == WHOLE_GAME ? WITH_SHADOW | PRELOAD_SOUNDS : PRELOAD_SOUNDS); - } break; @@ -344,7 +343,14 @@ void Section6::daemon() { break; case 10015: - _G(game).new_room = 608; + if (_G(executing) == INTERACTIVE_DEMO) { + // After having clicked the teleporter/"failed normally" button we end up here + // In the DEMO this click leads to the main menu (it does not restart the test sequence) + _G(game).new_section = 9; + _G(game).new_room = 901; + } else { + _G(game).new_room = 608; + } break; default: