X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=3ff575d19d7d2a10e9230384e386899e95bce5b7;hp=396939e7a64d8728223e21220695d54d6b95424c;hb=5c717898f717007b885f86e0d02f10d2a0306237;hpb=0a340d881161f4009a79dc326f3579a70dc35b5b diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 396939e7..3ff575d1 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2113,7 +2113,8 @@ static void LoadLevelInfoFromLevelDir(TreeInfo **node_first, closedir(dir); - if (!valid_entry_found) + /* special case: top level directory may directly contain "levelinfo.conf" */ + if (node_parent == NULL && !valid_entry_found) { /* check if this directory directly contains a file "levelinfo.conf" */ valid_entry_found |= LoadLevelInfoFromLevelConf(node_first, node_parent,