merged player name and team tree types
authorHolger Schemel <info@artsoft.org>
Mon, 14 Dec 2020 00:53:32 +0000 (01:53 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 14 Dec 2020 00:53:32 +0000 (01:53 +0100)
src/libgame/system.h
src/screens.c

index 549d003e45bfda2fda5529629c4535c3ea4e0ef1..090227e8817ee1eeca415152aad9576ffd6869f4 100644 (file)
 #define TREE_TYPE_LEVEL_DIR    3
 #define TREE_TYPE_LEVEL_NR     4
 #define TREE_TYPE_PLAYER_NAME  5
-#define TREE_TYPE_PLAYER_TEAM  6
 
 #define NUM_BASE_TREE_TYPES    4
-#define NUM_TREE_TYPES         7
+#define NUM_TREE_TYPES         6
 
 #define INFOTEXT_UNDEFINED     ""
 #define INFOTEXT_GRAPHICS_DIR  "Custom Graphics"
 #define INFOTEXT_MUSIC_DIR     "Custom Music"
 #define INFOTEXT_LEVEL_DIR     "Level Sets"
 #define INFOTEXT_LEVEL_NR      "Levels"
-#define INFOTEXT_PLAYER_NAME   "Player Names"
-#define INFOTEXT_PLAYER_TEAM   "Player Teams"
+#define INFOTEXT_PLAYER_NAME   "Players & Teams"
 
 #define TREE_INFOTEXT(t)       ((t) == TREE_TYPE_PLAYER_NAME ?         \
                                 INFOTEXT_PLAYER_NAME :                 \
-                                (t) == TREE_TYPE_PLAYER_TEAM ?         \
-                                INFOTEXT_PLAYER_TEAM :                 \
                                 (t) == TREE_TYPE_LEVEL_NR ?            \
                                 INFOTEXT_LEVEL_NR :                    \
                                 (t) == TREE_TYPE_LEVEL_DIR ?           \
index 29ce84dc807dc78761e1542d66965c41cfddf803..ee53e0bff80341528592124d4d84a82899bf5500 100644 (file)
@@ -4879,9 +4879,7 @@ void DrawChoosePlayerName(void)
 
   for (i = 0; i < MAX_PLAYER_NAMES; i++)
   {
-    boolean team_mode = (!network.enabled && setup.team_mode);
-    int tree_type = (team_mode ? TREE_TYPE_PLAYER_TEAM : TREE_TYPE_PLAYER_NAME);
-    TreeInfo *ti = newTreeInfo_setDefaults(tree_type);
+    TreeInfo *ti = newTreeInfo_setDefaults(TREE_TYPE_PLAYER_NAME);
     char identifier[32], name[MAX_PLAYER_NAME_LEN + 1];
     int value = i;