mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix incorrect map being loaded/downloaded
The `LoadMapSearch` function returns an error message or `nullptr` on success but the condition was incorrectly changed in #7580 so the opposite was checked instead. Closes #7597.
This commit is contained in:
parent
65641763c1
commit
6b547b1388
|
@ -1402,7 +1402,7 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
|
|||
pMapUrl = m_aMapDetailsUrl[0] ? m_aMapDetailsUrl : nullptr;
|
||||
}
|
||||
|
||||
if(LoadMapSearch(pMap, pMapSha256, MapCrc) != nullptr)
|
||||
if(LoadMapSearch(pMap, pMapSha256, MapCrc) == nullptr)
|
||||
{
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client/network", "loading done");
|
||||
SetLoadingStateDetail(IClient::LOADING_STATE_DETAIL_SENDING_READY);
|
||||
|
|
Loading…
Reference in a new issue