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
This commit is contained in:
antoniou79 2024-02-20 14:09:20 +02:00 committed by Paul Gilbert
parent 94a80f4a35
commit 9d589e2e8e

View File

@ -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: