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