1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

VCAI Explore goal: fix switch formatting

This commit is contained in:
ArseniyShestakov 2015-03-09 01:25:52 +03:00
parent 606013c535
commit 8d901ad4d0

View File

@ -600,6 +600,7 @@ TGoalVec Explore::getAllPossibleSubgoals()
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
objs.push_back (obj);
break;
}
}
else
@ -608,11 +609,9 @@ TGoalVec Explore::getAllPossibleSubgoals()
{
case Obj::MONOLITH_TWO_WAY:
case Obj::SUBTERRANEAN_GATE:
{
auto tObj = dynamic_cast<const CGTeleport *>(obj);
if(TeleportChannel::IMPASSABLE == ai->knownTeleportChannels[tObj->channel]->passability)
break;
for(auto exit : ai->knownTeleportChannels[tObj->channel]->exits)
{
if(!cb->getObj(exit))
@ -621,7 +620,7 @@ TGoalVec Explore::getAllPossibleSubgoals()
break;
}
}
}
break;
}
}
}