From: Holger Schemel Date: Tue, 26 Jul 2016 09:38:35 +0000 (+0200) Subject: undo of buggy 'small change for setting background image' (commit 00ca5a80) X-Git-Tag: 4.0.0.0~51 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c5f13e5788a1c1733ca0c847ecf8ae8583c9641c;p=rocksndiamonds.git undo of buggy 'small change for setting background image' (commit 00ca5a80) --- diff --git a/src/screens.c b/src/screens.c index 66f863cc..4802015c 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3656,10 +3656,11 @@ static void DrawChooseTree(TreeInfo **ti_ptr) /* needed if different viewport properties defined for choosing level (set) */ ChangeViewportPropertiesIfNeeded(); - SetMainBackgroundImage(game_status == GAME_MODE_LEVELNR ? - IMG_BACKGROUND_LEVELNR : - game_status == GAME_MODE_LEVELS ? - IMG_BACKGROUND_LEVELS : IMG_BACKGROUND); + if (game_status == GAME_MODE_LEVELNR) + SetMainBackgroundImage(IMG_BACKGROUND_LEVELNR); + else if (game_status == GAME_MODE_LEVELS) + SetMainBackgroundImage(IMG_BACKGROUND_LEVELS); + ClearField(); OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);