From: Holger Schemel Date: Fri, 5 Feb 2021 16:45:19 +0000 (+0100) Subject: added sorting tree group nodes prior to normal nodes (level sets / artwork) X-Git-Tag: 4.2.3.0~21 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=bd4911b7d2f6abd30f73852e79807f06885fcba2;p=rocksndiamonds.git added sorting tree group nodes prior to normal nodes (level sets / artwork) --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index af90c247..31c92c8e 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2877,6 +2877,8 @@ static int compareTreeInfoEntries(const void *object1, const void *object2) if (entry1->parent_link || entry2->parent_link) compare_result = (entry1->parent_link ? -1 : +1); + else if (entry1->level_group != entry2->level_group) + compare_result = (entry1->level_group ? -1 : +1); else if (entry1->sort_priority == entry2->sort_priority) compare_result = strcasecmp(entry1->name_sorting, entry2->name_sorting); else if (class_sorting1 == class_sorting2)