From 9ee7eebe11445aa35ceb3e93a44c7c93783735b7 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 15 Nov 2024 21:39:34 +0100 Subject: [PATCH] replaced code by function calls doing the same --- src/screens.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/screens.c b/src/screens.c index b506dbbb..43e922c4 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4427,7 +4427,7 @@ void HandleInfoScreen_Generic(int mx, int my, int dx, int dy, int button) while (getLevelSetInfoFilename(num_screens) != NULL) num_screens++; - if (num_screens == 0 && getLevelSetInfoBuffer() != NULL) + if (num_screens == 0 && hasLevelSetInfo()) num_screens = 1; text_no_info = "No level set info available."; @@ -4438,8 +4438,7 @@ void HandleInfoScreen_Generic(int mx, int my, int dx, int dy, int button) use_global_screens = FALSE; // determine number of level info screens - if (getLevelInfoFilename(level_nr) != NULL || - getLevelInfoBuffer() != NULL) + if (hasLevelInfo()) num_screens = 1; text_no_info = "No level info available."; -- 2.34.1