mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
VCAI Explore goal: fix switch formatting
This commit is contained in:
parent
606013c535
commit
8d901ad4d0
@ -600,6 +600,7 @@ TGoalVec Explore::getAllPossibleSubgoals()
|
|||||||
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
|
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
|
||||||
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
|
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
|
||||||
objs.push_back (obj);
|
objs.push_back (obj);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -608,11 +609,9 @@ TGoalVec Explore::getAllPossibleSubgoals()
|
|||||||
{
|
{
|
||||||
case Obj::MONOLITH_TWO_WAY:
|
case Obj::MONOLITH_TWO_WAY:
|
||||||
case Obj::SUBTERRANEAN_GATE:
|
case Obj::SUBTERRANEAN_GATE:
|
||||||
{
|
|
||||||
auto tObj = dynamic_cast<const CGTeleport *>(obj);
|
auto tObj = dynamic_cast<const CGTeleport *>(obj);
|
||||||
if(TeleportChannel::IMPASSABLE == ai->knownTeleportChannels[tObj->channel]->passability)
|
if(TeleportChannel::IMPASSABLE == ai->knownTeleportChannels[tObj->channel]->passability)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
for(auto exit : ai->knownTeleportChannels[tObj->channel]->exits)
|
for(auto exit : ai->knownTeleportChannels[tObj->channel]->exits)
|
||||||
{
|
{
|
||||||
if(!cb->getObj(exit))
|
if(!cb->getObj(exit))
|
||||||
@ -621,7 +620,7 @@ TGoalVec Explore::getAllPossibleSubgoals()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user