From ced0baf67a49abda7cf7d50a419781932ef47599 Mon Sep 17 00:00:00 2001 From: aurhat Date: Fri, 18 Jul 2014 23:38:13 +0200 Subject: [PATCH] Removed unnecessary restrictions of switching to SPECTATOR team Note: spectate() function doesn't have such restrictions. --- source/src/clientgame.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 9a3bed85..2d69fc4b 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -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); }