fixed also showing native BD level story on level info screen
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 18 Nov 2024 19:31:22 +0000 (20:31 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 18 Nov 2024 19:31:24 +0000 (20:31 +0100)
Make sure that level story is only displayed from info menu, but not
from main menu.

This fixes commit 6f7f7a0c.

src/screens.c

index 5794c2c663fd387581075769d0a203bf55c0cdfc..9f0b3659a9ed8c36529100c15bfd16b41219e1ec 100644 (file)
@@ -1193,8 +1193,11 @@ static char *getLevelInfoBuffer(boolean from_info_menu)
   if (*level.native_bd_level->cave->description)
     addLineToInfoBuffer(&buffer, "Description", level.native_bd_level->cave->description);
 
-  if (level.native_bd_level->cave->story)
-    addTextToInfoBuffer(&buffer, "Story", level.native_bd_level->cave->story);
+  if (from_info_menu)
+  {
+    if (level.native_bd_level->cave->story)
+      addTextToInfoBuffer(&buffer, "Story", level.native_bd_level->cave->story);
+  }
 
   if (level.native_bd_level->cave->remark)
     addTextToInfoBuffer(&buffer, "Remark", level.native_bd_level->cave->remark);