1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Basic version of hero movement on map. Removed old code.

This commit is contained in:
Ivan Savenko
2023-02-16 21:35:15 +02:00
parent d46687a9c8
commit 4501036a04
26 changed files with 401 additions and 1826 deletions

View File

@@ -404,11 +404,8 @@ void CClient::initMapHandler()
// During loading CPlayerInterface from serialized state it's depend on MH
if(!settings["session"]["headless"].Bool())
{
const_cast<CGameInfo *>(CGI)->mh = new CMapHandler();
CGI->mh->map = gs->map;
const_cast<CGameInfo *>(CGI)->mh = new CMapHandler(gs->map);
logNetwork->trace("Creating mapHandler: %d ms", CSH->th->getDiff());
CGI->mh->init();
logNetwork->trace("Initializing mapHandler (together): %d ms", CSH->th->getDiff());
}
pathCache.clear();