mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Clear game info on connect
Previously, the old game info persevered into the next server.
This commit is contained in:
parent
a49082d510
commit
b7fe9b112c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue