1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Formatting change

This commit is contained in:
Dydzio 2017-07-14 15:24:50 +02:00 committed by GitHub
parent 85eb159e58
commit 50b0773aab

View File

@ -858,6 +858,7 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const
//special battlefields with logically unavailable tiles
std::vector<BattleHex> impassableHexes;
if(battleGetBattlefieldType().num == BFieldType::SHIP_TO_SHIP)
{
impassableHexes =
{
6, 7, 8, 9,
@ -870,6 +871,7 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const
159, 160, 161, 162, 163,
176, 177, 178, 179, 180
};
}
for(auto hex : impassableHexes)
ret[hex] = EAccessibility::UNAVAILABLE;