diff options
| author | oy <Tom_Adams@web.de> | 2012-01-29 12:44:33 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-29 12:44:33 +0100 |
| commit | d17ee055a250554e05abb0fcade04da85e85647b (patch) | |
| tree | 499965250d914d5228bb49fbf10e6f67719e2d87 /src/game/client | |
| parent | ddbef31cb58eb200408af6034f8ff6e4316290ae (diff) | |
| download | zcatch-d17ee055a250554e05abb0fcade04da85e85647b.tar.gz zcatch-d17ee055a250554e05abb0fcade04da85e85647b.zip | |
fixed an issue about resending player info
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/gameclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 467a55a0..86fb5ad0 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -449,7 +449,7 @@ void CGameClient::OnRender() m_NewPredictedTick = false; // check if client info has to be resent - if(m_LastSendInfo && Client()->State() == IClient::STATE_ONLINE && !m_pMenus->IsActive() && m_LastSendInfo+time_freq()*5 < time_get()) + if(m_LastSendInfo && Client()->State() == IClient::STATE_ONLINE && m_Snap.m_LocalClientID >= 0 && !m_pMenus->IsActive() && m_LastSendInfo+time_freq()*5 < time_get()) { // resend if client info differs if(str_comp(g_Config.m_PlayerName, m_aClients[m_Snap.m_LocalClientID].m_aName) || |