removed unnecessary "else if" structure
authorHolger Schemel <info@artsoft.org>
Fri, 3 Sep 2021 13:13:58 +0000 (15:13 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 3 Sep 2021 13:13:58 +0000 (15:13 +0200)
src/libgame/setup.c

index 9c6ddfe6cabd8fd202c43761aec225d951cf9e43..715464ab13da9140fec5b6cc3e29a9aec93f3774 100644 (file)
@@ -1297,15 +1297,17 @@ TreeInfo *getFirstValidTreeInfoEntry(TreeInfo *node)
 
   if (node->node_group)                // enter level group (step down into tree)
     return getFirstValidTreeInfoEntry(node->node_group);
-  else if (node->parent_link)  // skip start entry of level group
+
+  if (node->parent_link)       // skip start entry of level group
   {
     if (node->next)            // get first real level series entry
       return getFirstValidTreeInfoEntry(node->next);
     else                       // leave empty level group and go on
       return getFirstValidTreeInfoEntry(node->node_parent->next);
   }
-  else                         // this seems to be a regular level series
-    return node;
+
+  // this seems to be a regular level series
+  return node;
 }
 
 TreeInfo *getTreeInfoFirstGroupEntry(TreeInfo *node)