X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fteams.qh;h=62bb2db7cdda28a8e6e63da5cf6024e59f570a3e;hp=1a2e1b1766febc7cb404dbe5e02f03bf1b2a7e71;hb=e0012447bfce1b551df3dc01b043655aa93dafad;hpb=16bb4a51347c40ae0655bba054bc7cf201538e45 diff --git a/qcsrc/common/teams.qh b/qcsrc/common/teams.qh index 1a2e1b1766..62bb2db7cd 100644 --- a/qcsrc/common/teams.qh +++ b/qcsrc/common/teams.qh @@ -56,11 +56,11 @@ const string STATIC_NAME_TEAM_3 = "Yellow"; const string STATIC_NAME_TEAM_4 = "Pink"; #ifdef CSQC -float teamplay; -float myteam; +bool teamplay; +int myteam; #endif -string Team_ColorCode(float teamid) +string Team_ColorCode(int teamid) { switch(teamid) { @@ -73,7 +73,7 @@ string Team_ColorCode(float teamid) return "^7"; } -vector Team_ColorRGB(float teamid) +vector Team_ColorRGB(int teamid) { switch(teamid) { @@ -86,7 +86,7 @@ vector Team_ColorRGB(float teamid) return '0 0 0'; } -string Team_ColorName(float teamid) +string Team_ColorName(int teamid) { switch(teamid) { @@ -100,7 +100,7 @@ string Team_ColorName(float teamid) } // used for replacement in filenames or such where the name CANNOT be allowed to be translated -string Static_Team_ColorName(float teamid) +string Static_Team_ColorName(int teamid) { switch(teamid) {