From: Holger Schemel Date: Mon, 18 Nov 2024 19:31:22 +0000 (+0100) Subject: fixed also showing native BD level story on level info screen X-Git-Tag: 4.4.0.0-test-4~43 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c73365c7c9c93ba70510df82b7296495b5972623;p=rocksndiamonds.git 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. --- 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);