From c73365c7c9c93ba70510df82b7296495b5972623 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 18 Nov 2024 20:31:22 +0100 Subject: [PATCH] fixed also showing native BD level story on level info screen Make sure that level story is only displayed from info menu, but not from main menu. This fixes commit 6f7f7a0c. --- src/screens.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/screens.c b/src/screens.c index 5794c2c6..9f0b3659 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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); -- 2.34.1