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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user