1
0
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:
Michał W. Urbańczyk
2007-09-22 01:16:31 +00:00
parent 6f4156c901
commit cfc94847a1
7 changed files with 134 additions and 91 deletions

View File

@ -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))