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:
@ -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;
|
||||
|
Reference in New Issue
Block a user