From: Holger Schemel Date: Tue, 14 Nov 2017 21:35:29 +0000 (+0100) Subject: fixed closing door 2 after door 1 when no tape is to be saved after playing X-Git-Tag: 4.1.0.0~50 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=10464a20b3b871f7731f5ec6ad2faca814bf6c20;p=rocksndiamonds.git fixed closing door 2 after door 1 when no tape is to be saved after playing --- diff --git a/src/game.c b/src/game.c index 02331879..41768a54 100644 --- a/src/game.c +++ b/src/game.c @@ -4692,14 +4692,16 @@ void GameEnd() local_player->LevelSolved_GameEnd = TRUE; - if (!global.use_envelope_request) - CloseDoor(DOOR_CLOSE_1); - if (local_player->LevelSolved_SaveTape) { + /* make sure that request dialog to save tape does not open door again */ + if (!global.use_envelope_request) + CloseDoor(DOOR_CLOSE_1); + SaveTapeChecked(tape.level_nr); /* ask to save tape */ } + /* if no tape is to be saved, close both doors simultaneously */ CloseDoor(DOOR_CLOSE_ALL); if (level_editor_test_game)