From: Holger Schemel Date: Sat, 16 Nov 2024 00:40:35 +0000 (+0100) Subject: fixed detecting if level (set) info is shown from main menu X-Git-Tag: 4.4.0.0-test-4~51 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f630f11fd8c08b6fd87ce3cfe9a3587bb685c90a;p=rocksndiamonds.git fixed detecting if level (set) info is shown from main menu --- diff --git a/src/screens.c b/src/screens.c index 692197ea..944c7880 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4328,9 +4328,9 @@ static char *getInfoScreenFilename_Generic(int nr, boolean global) static char *getInfoScreenBuffer_Generic(void) { - return (info_mode == INFO_MODE_LEVELSET ? getLevelSetInfoBuffer(game_status == GAME_MODE_INFO) : - info_mode == INFO_MODE_LEVEL ? getLevelInfoBuffer(game_status == GAME_MODE_INFO) : - info_mode == INFO_MODE_STORY ? getLevelStoryBuffer() : + return (info_mode == INFO_MODE_LEVELSET ? getLevelSetInfoBuffer(!info_screens_from_main) : + info_mode == INFO_MODE_LEVEL ? getLevelInfoBuffer(!info_screens_from_main) : + info_mode == INFO_MODE_STORY ? getLevelStoryBuffer() : NULL); }