fixed a bug with spectating a player

This commit is contained in:
oy 2013-02-24 17:24:12 +01:00
parent 85271f2e7e
commit ffa93a007c

View file

@ -259,6 +259,7 @@ void CPlayer::SetTeam(int Team, bool DoChatMsg)
m_Team = Team;
m_LastActionTick = Server()->Tick();
m_SpectatorID = SPEC_FREEVIEW;
// we got to wait 0.5 secs before respawning
m_RespawnTick = Server()->Tick()+Server()->TickSpeed()/2;
str_format(aBuf, sizeof(aBuf), "team_join player='%d:%s' m_Team=%d", m_ClientID, Server()->ClientName(m_ClientID), m_Team);