From: Holger Schemel Date: Tue, 2 Feb 2021 11:39:26 +0000 (+0100) Subject: changed function to determine correct tree type X-Git-Tag: 4.2.3.0~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d5fd3138b801ab08e4acd727f09229c4dba7db7e;p=rocksndiamonds.git changed function to determine correct tree type --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 2372886f..a4228a4e 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2904,14 +2904,15 @@ static TreeInfo *createTopTreeInfoNode(TreeInfo *node_first) return NULL; TreeInfo *ti_new = newTreeInfo(); + int type = node_first->type; - setTreeInfoToDefaults(ti_new, TREE_TYPE_LEVEL_DIR); + setTreeInfoToDefaults(ti_new, type); ti_new->node_parent = NULL; ti_new->parent_link = FALSE; setString(&ti_new->identifier, node_first->identifier); - setString(&ti_new->name, INFOTEXT_LEVEL_DIR); + setString(&ti_new->name, TREE_INFOTEXT(type)); setString(&ti_new->name_sorting, ti_new->name); setString(&ti_new->subdir, STRING_TOP_DIRECTORY); @@ -2920,7 +2921,7 @@ static TreeInfo *createTopTreeInfoNode(TreeInfo *node_first) ti_new->sort_priority = node_first->sort_priority;; ti_new->latest_engine = node_first->latest_engine; - setString(&ti_new->class_desc, INFOTEXT_LEVEL_DIR); + setString(&ti_new->class_desc, TREE_INFOTEXT(type)); ti_new->node_group = node_first; ti_new->level_group = TRUE;