Reset tuning of dummy and main when disconnecting

Instead of only resetting the tuning for either one which is currently active.
This commit is contained in:
Robert Müller 2024-03-27 23:30:44 +01:00
parent 8412d2be6e
commit a287669500

View file

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