diff options
| author | oy <Tom_Adams@web.de> | 2011-04-07 18:07:22 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-04-07 18:07:22 +0200 |
| commit | c27a634089fc7464c2ec6a50ece2f2e32b9d1563 (patch) | |
| tree | 78ee536dc3c4c10189463d311947849b218c90e2 /src/engine/client/client.cpp | |
| parent | 8acd47e3b808e4d08c8902f70891328b1db43efe (diff) | |
| download | zcatch-c27a634089fc7464c2ec6a50ece2f2e32b9d1563.tar.gz zcatch-c27a634089fc7464c2ec6a50ece2f2e32b9d1563.zip | |
fixed and show error message if the crc doesn't match on map load
Diffstat (limited to 'src/engine/client/client.cpp')
| -rw-r--r-- | src/engine/client/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index e3ff7b47..2141e511 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -956,8 +956,9 @@ const char *CClient::LoadMap(const char *pName, const char *pFilename, unsigned // get the crc of the map if(m_pMap->Crc() != WantedCrc) { - m_pMap->Unload(); str_format(aErrorMsg, sizeof(aErrorMsg), "map differs from the server. %08x != %08x", m_pMap->Crc(), WantedCrc); + m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client", aErrorMsg); + m_pMap->Unload(); return aErrorMsg; } |