undo of buggy 'small change for setting background image' (commit 00ca5a80)
authorHolger Schemel <info@artsoft.org>
Tue, 26 Jul 2016 09:38:35 +0000 (11:38 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 26 Jul 2016 09:38:35 +0000 (11:38 +0200)
src/screens.c

index 66f863cce57fc97b3f99b4cc63bf69f52f7d5174..4802015c8fe1519456267c76133a700c2cac65fb 100644 (file)
@@ -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);