small change for setting background image
authorHolger Schemel <info@artsoft.org>
Fri, 3 Jun 2016 17:42:56 +0000 (19:42 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 3 Jun 2016 17:42:56 +0000 (19:42 +0200)
src/screens.c

index 4802015c8fe1519456267c76133a700c2cac65fb..66f863cce57fc97b3f99b4cc63bf69f52f7d5174 100644 (file)
@@ -3656,11 +3656,10 @@ static void DrawChooseTree(TreeInfo **ti_ptr)
   /* needed if different viewport properties defined for choosing level (set) */
   ChangeViewportPropertiesIfNeeded();
 
-  if (game_status == GAME_MODE_LEVELNR)
-    SetMainBackgroundImage(IMG_BACKGROUND_LEVELNR);
-  else if (game_status == GAME_MODE_LEVELS)
-    SetMainBackgroundImage(IMG_BACKGROUND_LEVELS);
-
+  SetMainBackgroundImage(game_status == GAME_MODE_LEVELNR ?
+                        IMG_BACKGROUND_LEVELNR :
+                        game_status == GAME_MODE_LEVELS ?
+                        IMG_BACKGROUND_LEVELS : IMG_BACKGROUND);
   ClearField();
 
   OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);