From ce49fdb87ac8d3d9f258882f3072cad48a940044 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 17 May 2015 13:36:00 +0200 Subject: [PATCH] fixed minor bug with doors and envelope requests --- src/game.c | 5 ++++- src/screens.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index 49908daa..cad2e92e 100644 --- a/src/game.c +++ b/src/game.c @@ -4392,13 +4392,16 @@ void GameEnd() local_player->LevelSolved_GameEnd = TRUE; - CloseDoor(DOOR_CLOSE_1); + if (!global.use_envelope_request) + CloseDoor(DOOR_CLOSE_1); if (local_player->LevelSolved_SaveTape) { SaveTapeChecked(tape.level_nr); /* ask to save tape */ } + CloseDoor(DOOR_CLOSE_ALL); + if (level_editor_test_game) { game_status = GAME_MODE_MAIN; diff --git a/src/screens.c b/src/screens.c index 68d9a680..c9c2ba4a 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3849,7 +3849,7 @@ void DrawHallOfFame(int highlight_position) SetDrawDeactivationMask(REDRAW_NONE); SetDrawBackgroundMask(REDRAW_FIELD); - CloseDoor(DOOR_CLOSE_2); + CloseDoor(DOOR_CLOSE_ALL); if (highlight_position < 0) LoadScore(level_nr); -- 2.34.1