From: Holger Schemel Date: Fri, 3 Jun 2016 17:42:56 +0000 (+0200) Subject: small change for setting background image X-Git-Tag: 4.0.0.0-rc3~20 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=00ca5a80f980e039d78ed670e88f88a85d222461;p=rocksndiamonds.git small change for setting background image --- diff --git a/src/screens.c b/src/screens.c index 4802015c..66f863cc 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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);