Remove unnecessary cleanup in CClient::LoadMap function

The number of received snapshots is already correctly reset in the `CClient::OnEnterGame` function for the main and dummy connections.
This commit is contained in:
Robert Müller 2024-04-13 10:58:59 +02:00
parent 06f330afb7
commit 507b097ad8

View file

@ -949,7 +949,6 @@ const char *CClient::LoadMap(const char *pName, const char *pFilename, SHA256_DI
char aBuf[256];
str_format(aBuf, sizeof(aBuf), "loaded map '%s'", pFilename);
m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client", aBuf);
m_aReceivedSnapshots[g_Config.m_ClDummy] = 0;
str_copy(m_aCurrentMap, pName);
str_copy(m_aCurrentMapPath, pFilename);