Removed unnecessary restrictions of switching to SPECTATOR team

Note: spectate() function doesn't have such restrictions.
This commit is contained in:
aurhat
2014-07-19 14:38:33 +02:00
committed by ac-stef
parent 7c4a7e54f4
commit ced0baf67a
-5
View File
@@ -191,11 +191,6 @@ void newteam(char *name)
int nt = teamatoi(name);
if(nt == player1->team) return; // same team
if(!team_isvalid(nt)) { conoutf(_("%c3\"%s\" is not a valid team name (try CLA, RVSF or SPECTATOR)"), CC, name); return; }
if(team_isspect(nt))
{
if(player1->state != CS_DEAD) { conoutf(_("you'll need to be in a \"dead\" state to become a spectator")); return; }
if(!multiplayer()) { conoutf(_("you cannot spectate in singleplayer")); return; }
}
if(player1->state == CS_EDITING) conoutf(_("you can't change team while editing"));
else addmsg(SV_SWITCHTEAM, "ri", nt);
}