1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Use BattleHex as const ref wherever possible

Minor Fixes
Drop unused function from BattleHexArray
This commit is contained in:
MichalZr6
2025-01-13 14:12:00 +01:00
parent 8f63a82d60
commit ecdd394bb1
56 changed files with 335 additions and 355 deletions

View File

@ -183,7 +183,7 @@ BattleSiegeController::BattleSiegeController(BattleInterface & owner, const CGTo
}
}
const CCreature *BattleSiegeController::getTurretCreature(BattleHex position) const
const CCreature *BattleSiegeController::getTurretCreature(const BattleHex & position) const
{
switch (position.toInt())
{
@ -322,7 +322,7 @@ void BattleSiegeController::collectRenderableObjects(BattleRenderer & renderer)
}
}
bool BattleSiegeController::isAttackableByCatapult(BattleHex hex) const
bool BattleSiegeController::isAttackableByCatapult(const BattleHex & hex) const
{
if (owner.tacticsMode)
return false;