better spectate mode fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7590 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-10-11 16:59:16 +00:00
parent 397759bb44
commit 60d677c1e7
+1 -1
View File
@@ -1698,7 +1698,7 @@ void setfollowplayer(int cn)
// set new spect mode
void spectatemode(int mode)
{
if(player1->state != CS_SPECTATE || (!m_teammode && !team_isspect(player1->team) && servstate.mastermode == MM_MATCH)) return; // during ffa matches only SPECTATORS can spectate
if((player1->state != CS_DEAD && player1->state != CS_SPECTATE && !team_isspect(player1->team)) || (!m_teammode && !team_isspect(player1->team) && servstate.mastermode == MM_MATCH)) return; // during ffa matches only SPECTATORS can spectate
if(mode == player1->spectatemode) return;
showscores(false);
switch(mode)