From: Holger Schemel Date: Mon, 15 Feb 2021 23:46:52 +0000 (+0100) Subject: minor code improvement X-Git-Tag: 4.2.3.0~11 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=17f6f3b42db10ad8c384ba5ebd1e6a7ecbfbe494 minor code improvement --- diff --git a/src/libgame/setup.h b/src/libgame/setup.h index 2f5489d9..8ec6b4d8 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -229,10 +229,10 @@ typedef struct hashtable SetupFileHash; #define TREE_SORTING_DIR(ti) \ (((ti)->parent_link ? 0 : \ - (ti)->in_user_dir ? 8 : \ - (ti)->sort_priority >= LEVELCLASS_CLASSICS_START ? 6 : \ - (ti)->sort_priority >= LEVELCLASS_TUTORIAL_START ? 4 : \ - 2) + \ + (ti)->in_user_dir ? 4 : \ + (ti)->sort_priority >= LEVELCLASS_CLASSICS_START ? 3 : \ + (ti)->sort_priority >= LEVELCLASS_TUTORIAL_START ? 2 : \ + 1) * 2 + \ ((ti)->level_group ? 0 : 1)) #define TREE_COLOR_DIR(ti, active) \