From 17f6f3b42db10ad8c384ba5ebd1e6a7ecbfbe494 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 16 Feb 2021 00:46:52 +0100 Subject: [PATCH] minor code improvement --- src/libgame/setup.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) \ -- 2.34.1