mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
real unlimited movement (like in OH3)
This commit is contained in:
@ -234,7 +234,10 @@ int CGHeroInstance::movementPointsRemaining() const
|
||||
|
||||
void CGHeroInstance::setMovementPoints(int points)
|
||||
{
|
||||
movement = std::max(0, points);
|
||||
if(getBonusBearer()->hasBonusOfType(BonusType::UNLIMITED_MOVEMENT))
|
||||
movement = 1000000;
|
||||
else
|
||||
movement = std::max(0, points);
|
||||
}
|
||||
|
||||
int CGHeroInstance::movementPointsLimit(bool onLand) const
|
||||
|
Reference in New Issue
Block a user