Always update default tune zone

This commit is contained in:
Jupeyy 2021-09-15 22:14:16 +02:00
parent f2dd9a0ab3
commit 5dee9a3833

View file

@ -2203,6 +2203,10 @@ void CGameClient::UpdatePrediction()
m_GameWorld.m_WorldConfig.m_PredictFreeze = g_Config.m_ClPredictFreeze;
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(CCharacter *pLocalChar = m_GameWorld.GetCharacterByID(m_Snap.m_LocalClientID))
@ -2267,10 +2271,6 @@ void CGameClient::UpdatePrediction()
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(m_Snap.m_aCharacters[m_Snap.m_LocalClientID].m_HasExtendedData)