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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user