mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Further refactoring: merged terrain and undergroundTerrain in Mapa.
This commit is contained in:
@@ -213,7 +213,7 @@ void CPathfinder::CalcH(Coordinate* node)
|
||||
y = CGI->mh->map->height-1;
|
||||
|
||||
//Get the movement cost.
|
||||
ret = Hero->getTileCost(CGI->mh->ttiles[x][y][node->z].tileInfo->tertype, CGI->mh->map->terrain[x][y].malle,CGI->mh->map->terrain[x][y].nuine);
|
||||
ret = Hero->getTileCost(CGI->mh->ttiles[x][y][node->z].tileInfo->tertype, CGI->mh->map->terrain[x][y][0].malle,CGI->mh->map->terrain[x][y][0].nuine);
|
||||
|
||||
node->h = ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user