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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user