X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamplay.qc;h=bc705153ab97fd616137fd31d27dd939589ad9fc;hb=9c40c25078426ed90e985c402c648fea3e3a8832;hp=7d5031fb87321beb771bf4f72390a7fd6464e0ed;hpb=406b13f464e47f8ca373b6bbe8ebe3bfc0f6be44;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamplay.qc b/qcsrc/client/teamplay.qc index 7d5031fb8..bc705153a 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) {