mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
* added selecting path by clicking on terrain (experimental)
* coordinates in CPathNode are stored in int3 * minor improvements
This commit is contained in:
@ -937,7 +937,7 @@ char & CMapHandler::undVisAccess(int x, int y)
|
||||
return undVisibility[x+Woff][y+Hoff];
|
||||
}
|
||||
|
||||
int CMapHandler::getCost(int3 &a, int3 &b, CHeroInstance *hero)
|
||||
int CMapHandler::getCost(int3 &a, int3 &b, const CHeroInstance *hero)
|
||||
{
|
||||
int ret = hero->type->heroClass->terrCosts[CGI->mh->ttiles[a.x][a.y][a.z].malle];
|
||||
if(!(a.x==b.x || a.y==b.y))
|
||||
|
Reference in New Issue
Block a user