rnd-20060228-1-src
[rocksndiamonds.git] / src / libgame / setup.c
index 396939e7a64d8728223e21220695d54d6b95424c..3ff575d19d7d2a10e9230384e386899e95bce5b7 100644 (file)
@@ -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,