fixed subtitle for empty level story info screen
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 17 Nov 2024 23:16:15 +0000 (00:16 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 17 Nov 2024 23:16:15 +0000 (00:16 +0100)
src/screens.c

index 6e4fd3f64e69ea199525f6b77228b437307ca9dc..7abfd77bcc06d7e9f138817d6df44ba473f351ab 100644 (file)
@@ -1901,7 +1901,8 @@ static char *getInfoScreenSubtitle(int screen_nr, int num_screens, int use_globa
   {
     sprintf(info_text_title, "Page %d of %d", screen_nr + 1, num_screens);
   }
-  else if (info_mode == INFO_MODE_LEVEL)
+  else if ((info_mode == INFO_MODE_LEVEL) ||
+           (info_mode == INFO_MODE_STORY && !hasLevelStory()))
   {
     snprintf(info_text_title, MAX_LINE_LEN, "for level %d", level_nr);
   }