]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get rid of TEAM_SV_TO_CL and TEAM_CL_TO_SV aliases
authorSamual Lenks <samual@xonotic.org>
Fri, 8 Feb 2013 06:48:28 +0000 (01:48 -0500)
committerSamual Lenks <samual@xonotic.org>
Fri, 8 Feb 2013 06:48:28 +0000 (01:48 -0500)
qcsrc/common/notifications.qh
qcsrc/common/teams.qh

index 6c89e18e65b0477bba49a6192d0679c7da19f028..bbd3e46422e58c5b54178ab80021b69cf846cce7 100644 (file)
@@ -95,7 +95,7 @@ string got_commandkey;
 #define SPREE_INF (((f1 == 3) || (f1 == 5) || (f1 == 10) || (f1 == 15) || (f1 == 20) || (f1 == 25) || (f1 == 30)) ? sprintf(normal_or_gentle(_("%d frag spree! "), _("%d score spree! ")), f1) : "")
 #define SPREE_END ((f1 >= 3) ? sprintf(normal_or_gentle(_(", ending their %d frag spree"), _(", ending their %d score spree")), f1) : "")
 #define SPREE_LOST ((f1 >= 3) ? sprintf(normal_or_gentle(_(", losing their %d frag spree"), _(", losing their %d score spree")), f1) : "")
-#define DEATH_TEAM Team_ColoredFullName(TEAM_SV_TO_CL(f1))
+#define DEATH_TEAM Team_ColoredFullName(f1 - 1)
 #define WEAPON_NAME f1 // weaponorder[f1].netname
 
 #else // SVQC replacements
index 95f8f2006f30a26ce57761f8bd513cc13d82b6fb..00500a1614a378459093e1ba87ad62a1f05f51ba 100644 (file)
@@ -4,10 +4,6 @@ const float FL_TEAM_2 = 2; // blue
 const float FL_TEAM_3 = 3; // yellow
 const float FL_TEAM_4 = 4; // pink
 const float FL_SPECTATOR = 5;
-
-// TO BE PHASED OUT IF WE SWITCH TO USE "TEAMNUMBERS_THAT_ARENT_STUPID"
-#define TEAM_SV_TO_CL(num) num
-#define TEAM_CL_TO_SV(num) num
 #else
 #ifdef CSQC
 const float FL_TEAM_1 = 4;  // red
@@ -21,10 +17,6 @@ const float FL_TEAM_3 = 13; // yellow
 const float FL_TEAM_4 = 10; // pink
 #endif
 const float FL_SPECTATOR = 1337;
-
-// TO BE PHASED OUT IF WE SWITCH TO USE "TEAMNUMBERS_THAT_ARENT_STUPID"
-#define TEAM_SV_TO_CL(num) (num - 1)
-#define TEAM_CL_TO_SV(num) (num + 1)
 #endif
 
 const string COL_TEAM_1 = "^1";