mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
CPlayerInterface: don't stop hero movement on embark / disembark
When hero have free boarding bonus there no reason to stop movement.
This commit is contained in:
@ -308,7 +308,7 @@ void CPlayerInterface::heroMoved(const TryMoveHero & details)
|
||||
}
|
||||
}
|
||||
|
||||
if (details.result != TryMoveHero::SUCCESS) //hero failed to move
|
||||
if(details.stopMovement()) //hero failed to move
|
||||
{
|
||||
hero->isStanding = true;
|
||||
stillMoveHero.setn(STOP_MOVE);
|
||||
|
Reference in New Issue
Block a user