From: Holger Schemel Date: Fri, 15 Nov 2024 20:39:34 +0000 (+0100) Subject: replaced code by function calls doing the same X-Git-Tag: 4.4.0.0-test-4~56 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9ee7eebe11445aa35ceb3e93a44c7c93783735b7;p=rocksndiamonds.git replaced code by function calls doing the same --- 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.";