From: Holger Schemel Date: Fri, 3 Sep 2021 13:13:58 +0000 (+0200) Subject: removed unnecessary "else if" structure X-Git-Tag: 4.3.0.0~86 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=360dc85deeb6b16c3923f629f3c6909a19823e3e;p=rocksndiamonds.git removed unnecessary "else if" structure --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 9c6ddfe6..715464ab 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -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)