mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fixed villages/capitols not appearing.
This commit is contained in:
parent
6b9e64de91
commit
d71ed76a0f
@ -378,8 +378,8 @@ void CClient::newGame( CConnection *con, StartInfo *si )
|
|||||||
const_cast<CGameInfo*>(CGI)->mh = new CMapHandler();
|
const_cast<CGameInfo*>(CGI)->mh = new CMapHandler();
|
||||||
CGI->mh->map = gs->map;
|
CGI->mh->map = gs->map;
|
||||||
tlog0 <<"Creating mapHandler: "<<tmh.getDif()<<std::endl;
|
tlog0 <<"Creating mapHandler: "<<tmh.getDif()<<std::endl;
|
||||||
CGI->mh->init();
|
|
||||||
initVillagesCapitols(gs->map);
|
initVillagesCapitols(gs->map);
|
||||||
|
CGI->mh->init();
|
||||||
pathInfo = new CPathsInfo(int3(gs->map->width, gs->map->height, gs->map->twoLevel+1));
|
pathInfo = new CPathsInfo(int3(gs->map->width, gs->map->height, gs->map->twoLevel+1));
|
||||||
tlog0 <<"Initializing mapHandler (together): "<<tmh.getDif()<<std::endl;
|
tlog0 <<"Initializing mapHandler (together): "<<tmh.getDif()<<std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user