mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Minor code simplify
This commit is contained in:
@@ -857,9 +857,7 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const
|
||||
|
||||
//special battlefields with logically unavailable tiles
|
||||
std::vector<BattleHex> impassableHexes;
|
||||
switch(battleGetBattlefieldType().num)
|
||||
{
|
||||
case BFieldType::SHIP_TO_SHIP:
|
||||
if(battleGetBattlefieldType().num == BFieldType::SHIP_TO_SHIP)
|
||||
impassableHexes =
|
||||
{
|
||||
6, 7, 8, 9,
|
||||
@@ -872,8 +870,6 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const
|
||||
159, 160, 161, 162, 163,
|
||||
176, 177, 178, 179, 180
|
||||
};
|
||||
break;
|
||||
}
|
||||
for(auto hex : impassableHexes)
|
||||
ret[hex] = EAccessibility::UNAVAILABLE;
|
||||
|
||||
|
Reference in New Issue
Block a user