1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Plumbing on client and server to make flying actually work

This commit is contained in:
ArseniyShestakov
2015-11-05 10:02:13 +03:00
parent f4dea88e3b
commit ac12a0735e
3 changed files with 22 additions and 6 deletions

View File

@ -2689,6 +2689,8 @@ void CPlayerInterface::doMoveHero(const CGHeroInstance * h, CGPath path)
{ // Hero should be able to go through object if it's allow transit
doMovement(endpos, true);
}
else if(path.nodes[i-1].layer == EPathfindingLayer::AIR)
doMovement(endpos, true);
else
doMovement(endpos, false);