1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

fix missing code + movement points used

This commit is contained in:
Laserlicht
2024-08-03 20:47:20 +02:00
parent eca04cbc54
commit 611d5daa0f
3 changed files with 13 additions and 2 deletions

View File

@@ -1351,6 +1351,7 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, EMovementMode moveme
turnTimerHandler->setEndTurnAllowed(h->getOwner(), !movingOntoWater && !movingOntoObstacle);
doMove(TryMoveHero::SUCCESS, lookForGuards, visitDest, LEAVING_TILE);
gs->statistic.values.movementPointsUsed[asker] += tmh.movePoints;
return true;
}
}