1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix incorrect movement gain from objects like Rally Flag

Checked all possible places that can change move points - looks like all
of them expect absolute values
This commit is contained in:
Ivan Savenko
2025-06-24 15:49:55 +03:00
parent de893a3575
commit 4181514c3f
7 changed files with 7 additions and 16 deletions

View File

@@ -590,7 +590,7 @@ std::vector<SetMovePoints> NewTurnProcessor::updateHeroesMovementPoints()
int32_t newMovementPoints = h->movementPointsLimitCached(gameHandler->gameState().getMap().getTile(h->visitablePos()).isLand(), ti.get());
if (newMovementPoints != h->movementPointsRemaining())
result.emplace_back(h->id, newMovementPoints, ChangeValueMode::ABSOLUTE);
result.emplace_back(h->id, newMovementPoints);
}
}
return result;