X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamplay.qc;h=bc705153ab97fd616137fd31d27dd939589ad9fc;hb=d7a010137bb18ba896e4196140ffe8f4afb4de6c;hp=7d5031fb87321beb771bf4f72390a7fd6464e0ed;hpb=dcaa708cee1093798a651369d9fd46ad5074121e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamplay.qc b/qcsrc/client/teamplay.qc index 7d5031fb87..bc705153ab 100644 --- a/qcsrc/client/teamplay.qc +++ b/qcsrc/client/teamplay.qc @@ -1,6 +1,3 @@ -float teamplay; -float myteam; - float TeamByColor(float color) { switch(color) @@ -12,6 +9,17 @@ float TeamByColor(float color) default: return 0; } } +float ColorByTeam(float i) +{ + switch(i) + { + case 0: return COLOR_TEAM1; + case 1: return COLOR_TEAM2; + case 2: return COLOR_TEAM3; + case 3: return COLOR_TEAM4; + default: return COLOR_TEAM1; + } +} float GetPlayerColorForce(float i) {