mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed a bug with spectating a player
This commit is contained in:
parent
85271f2e7e
commit
ffa93a007c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue