From: Holger Schemel Date: Sat, 11 Jun 2022 12:36:01 +0000 (+0200) Subject: fixed warning when not finding any valid level sets in level directory X-Git-Tag: 4.3.2.2~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ba3f6a6c4f34631773dc5a7cfdc5b4089cd16da5;p=rocksndiamonds.git fixed warning when not finding any valid level sets in level directory --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index acee4a9f..fa696c58 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -3893,9 +3893,13 @@ static void LoadLevelInfoFromLevelDir(TreeInfo **node_first, level_directory, "."); } - if (!valid_entry_found) + boolean valid_entry_expected = + (strEqual(level_directory, options.level_directory) || + setup.internal.create_user_levelset); + + if (valid_entry_expected && !valid_entry_found) Warn("cannot find any valid level series in directory '%s'", - level_directory); + level_directory); } boolean AdjustGraphicsForEMC(void)