Clear game info on connect

Previously, the old game info persevered into the next server.
This commit is contained in:
heinrich5991 2021-09-15 16:22:50 +02:00
parent a49082d510
commit b7fe9b112c

View file

@ -453,6 +453,7 @@ void CGameClient::OnConnected()
m_GameWorld.Clear();
m_GameWorld.m_WorldConfig.m_InfiniteAmmo = true;
mem_zero(&m_GameInfo, sizeof(m_GameInfo));
m_PredictedDummyID = -1;
for(auto &LastWorldCharacter : m_aLastWorldCharacters)
LastWorldCharacter.m_Alive = false;