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,
static struct TokenInfo setup_info_editor[] =
{
-#if 0
- { TYPE_STRING, NULL, "Offer Special Elements:"},
-#endif
-
-#if 0
-#else
{ TYPE_SWITCH, &setup.editor.el_boulderdash, "Boulder Dash:" },
{ TYPE_SWITCH, &setup.editor.el_emerald_mine, "Emerald Mine:" },
{ TYPE_SWITCH, &setup.editor.el_emerald_mine_club, "Emerald Mine Club:" },
{ TYPE_SWITCH, &setup.editor.el_supaplex, "Supaplex:" },
{ TYPE_SWITCH, &setup.editor.el_diamond_caves, "Diamond Caves II:" },
{ TYPE_SWITCH, &setup.editor.el_dx_boulderdash,"DX-Boulderdash:" },
-#endif
{ TYPE_SWITCH, &setup.editor.el_chars, "Text Characters:" },
{ TYPE_SWITCH, &setup.editor.el_custom, "Custom & Group Elements:" },
{ TYPE_SWITCH, &setup.editor.el_headlines, "Headlines:" },