more spectator cleanup (just use switchteam, and auto-kill player on server side)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6784 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2012-04-13 11:39:11 +00:00
parent 70b1823ed7
commit 0666067f2e
6 changed files with 6 additions and 37 deletions
+1 -1
View File
@@ -1694,7 +1694,7 @@ playerent *updatefollowplayer(int shiftdirection)
void spectate()
{
if(m_demo) return;
if(!team_isspect(player1->team)) addmsg(SV_SPECTATE, "ri", player1->clientnum);
if(!team_isspect(player1->team)) addmsg(SV_SWITCHTEAM, "ri", TEAM_SPECT);
else tryrespawn();
}