replaced string texts with predefined string constants
authorHolger Schemel <info@artsoft.org>
Tue, 2 Feb 2021 11:54:31 +0000 (12:54 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 2 Feb 2021 11:54:31 +0000 (12:54 +0100)
src/libgame/setup.c
src/libgame/system.h

index a4228a4edd76bb774ceb136c08622a6c49dc659f..8f98ff010db474365fb4c7fd9500e27a5d35f167 100644 (file)
@@ -2882,7 +2882,7 @@ static TreeInfo *createParentTreeInfoNode(TreeInfo *node_parent)
   ti_new->parent_link = TRUE;
 
   setString(&ti_new->identifier, node_parent->identifier);
-  setString(&ti_new->name, ".. (parent directory)");
+  setString(&ti_new->name, BACKLINK_TEXT_PARENT);
   setString(&ti_new->name_sorting, ti_new->name);
 
   setString(&ti_new->subdir, STRING_PARENT_DIRECTORY);
@@ -2928,7 +2928,7 @@ static TreeInfo *createTopTreeInfoNode(TreeInfo *node_first)
 
   TreeInfo *ti_new2 = createParentTreeInfoNode(ti_new);
 
-  setString(&ti_new2->name, ".. (main menu)");
+  setString(&ti_new2->name, BACKLINK_TEXT_MAIN);
   setString(&ti_new2->name_sorting, ti_new2->name);
 
   return ti_new;
index 46124b82e231c27c48679ac19a9db3bbbd16ac3a..87c56d690ef41af15465f8bd01d0f9195ed9f552 100644 (file)
 #define INFOTEXT_LEVEL_NR      "Levels"
 #define INFOTEXT_PLAYER_NAME   "Players & Teams"
 
+#define BACKLINK_TEXT_MAIN     ".. (main menu)"
+#define BACKLINK_TEXT_PARENT   ".. (parent directory)"
+
 #define TREE_INFOTEXT(t)       ((t) == TREE_TYPE_PLAYER_NAME ?         \
                                 INFOTEXT_PLAYER_NAME :                 \
                                 (t) == TREE_TYPE_LEVEL_NR ?            \