allow admins to be forced to the other team

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2386 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-08-25 23:40:40 +00:00
parent e9b48b331e
commit 58cdb3b8d3
+1 -1
View File
@@ -51,7 +51,7 @@ struct playeraction : serveraction
struct forceteamaction : playeraction
{
void perform() { forceteam(cn, team_opposite(team_int(clients[cn]->team)), true); }
virtual bool isvalid() { return m_teammode && playeraction::isvalid(); }
virtual bool isvalid() { return m_teammode && valid_client(cn); }
forceteamaction(int cn) : playeraction(cn)
{
if(isvalid()) s_sprintf(desc)("force player %s to the enemy team", clients[cn]->name);