mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Always update default tune zone
This commit is contained in:
parent
f2dd9a0ab3
commit
5dee9a3833
|
@ -2203,6 +2203,10 @@ void CGameClient::UpdatePrediction()
|
||||||
m_GameWorld.m_WorldConfig.m_PredictFreeze = g_Config.m_ClPredictFreeze;
|
m_GameWorld.m_WorldConfig.m_PredictFreeze = g_Config.m_ClPredictFreeze;
|
||||||
m_GameWorld.m_WorldConfig.m_PredictWeapons = AntiPingWeapons();
|
m_GameWorld.m_WorldConfig.m_PredictWeapons = AntiPingWeapons();
|
||||||
|
|
||||||
|
// always update default tune zone, even without character
|
||||||
|
if(!m_GameWorld.m_WorldConfig.m_UseTuneZones)
|
||||||
|
m_GameWorld.TuningList()[0] = m_Tuning[g_Config.m_ClDummy];
|
||||||
|
|
||||||
if(!m_Snap.m_pLocalCharacter)
|
if(!m_Snap.m_pLocalCharacter)
|
||||||
{
|
{
|
||||||
if(CCharacter *pLocalChar = m_GameWorld.GetCharacterByID(m_Snap.m_LocalClientID))
|
if(CCharacter *pLocalChar = m_GameWorld.GetCharacterByID(m_Snap.m_LocalClientID))
|
||||||
|
@ -2267,10 +2271,6 @@ void CGameClient::UpdatePrediction()
|
||||||
m_ReceivedTuning[g_Config.m_ClDummy] = false;
|
m_ReceivedTuning[g_Config.m_ClDummy] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
m_GameWorld.TuningList()[0] = m_Tuning[g_Config.m_ClDummy];
|
|
||||||
}
|
|
||||||
|
|
||||||
// if ddnetcharacter is available, ignore server-wide tunings for hook and collision
|
// if ddnetcharacter is available, ignore server-wide tunings for hook and collision
|
||||||
if(m_Snap.m_aCharacters[m_Snap.m_LocalClientID].m_HasExtendedData)
|
if(m_Snap.m_aCharacters[m_Snap.m_LocalClientID].m_HasExtendedData)
|
||||||
|
|
Loading…
Reference in a new issue