Merge pull request #8168 from Robyt3/Dummy-Tuning-Reset

Reset tuning of dummy and main when disconnecting
This commit is contained in:
Dennis Felsing 2024-03-31 13:39:35 +00:00 committed by GitHub
commit 94323b7704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -538,6 +538,8 @@ void CGameClient::OnReset()
m_aReceivedTuning[0] = false;
m_aReceivedTuning[1] = false;
m_aTuning[0] = CTuningParams();
m_aTuning[1] = CTuningParams();
InvalidateSnapshot();
@ -553,7 +555,6 @@ void CGameClient::OnReset()
m_LastRoundStartTick = -1;
m_LastFlagCarrierRed = -4;
m_LastFlagCarrierBlue = -4;
m_aTuning[g_Config.m_ClDummy] = CTuningParams();
m_NextChangeInfo = 0;