forceteam notification message changed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2576 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-09-14 00:34:34 +00:00
parent d6ed6cbec5
commit ec6ae4c59f
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -623,8 +623,10 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_FORCETEAM:
{
int team = getint(p);
bool respawn = getint(p) == 1;
int attr = getint(p);
bool respawn = (attr & 1) == 1;
changeteam(team, respawn);
if(attr & 2) hudoutf("you got forced to team %s", team_string(team));
break;
}
@@ -635,7 +637,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
playerent *d = getclient(fpl);
bool you = fpl == player1->clientnum; // sound?
bool et = team_int(player1->team) != fnt;
conoutf("the server forced %s to%s team%s", you ? "you" : d ? colorname(d) : "", you ? "" : et ? " the enemy" : " your", you ? fnt ? " RVSF": " CLA" : "");
hudoutf("the server forced %s to%s team%s", you ? "you" : d ? colorname(d) : "", you ? "" : et ? " the enemy" : " your", you ? fnt ? " RVSF": " CLA" : "");
break;
}