mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
set m_usetunezones before local char spawns
This commit is contained in:
parent
d2faabe913
commit
f18a47ae30
|
@ -2201,6 +2201,8 @@ ColorRGBA CalculateNameColor(ColorHSLA TextColorHSL)
|
|||
|
||||
void CGameClient::UpdatePrediction()
|
||||
{
|
||||
m_GameWorld.m_WorldConfig.m_UseTuneZones = m_GameInfo.m_PredictDDRaceTiles;
|
||||
|
||||
if(!m_Snap.m_pLocalCharacter)
|
||||
{
|
||||
if(CCharacter *pLocalChar = m_GameWorld.GetCharacterByID(m_Snap.m_LocalClientID))
|
||||
|
@ -2213,7 +2215,6 @@ void CGameClient::UpdatePrediction()
|
|||
m_GameWorld.m_WorldConfig.m_IsFNG = m_GameInfo.m_PredictFNG;
|
||||
m_GameWorld.m_WorldConfig.m_PredictDDRace = g_Config.m_ClPredictDDRace;
|
||||
m_GameWorld.m_WorldConfig.m_PredictTiles = g_Config.m_ClPredictDDRace && m_GameInfo.m_PredictDDRaceTiles;
|
||||
m_GameWorld.m_WorldConfig.m_UseTuneZones = m_GameInfo.m_PredictDDRaceTiles;
|
||||
m_GameWorld.m_WorldConfig.m_PredictFreeze = g_Config.m_ClPredictFreeze;
|
||||
m_GameWorld.m_WorldConfig.m_PredictWeapons = AntiPingWeapons();
|
||||
if(m_Snap.m_pLocalCharacter->m_AmmoCount > 0 && m_Snap.m_pLocalCharacter->m_Weapon != WEAPON_NINJA)
|
||||
|
|
Loading…
Reference in a new issue