VCAI Explore goal: remove useless check

This commit is contained in:
ArseniyShestakov committed 2015-03-08 18:36:25 +03:00
1 parent a741c5fefd
commit f490ea1fcd
1 file changed
+3 -6
+3 -6
View File
@@ -597,12 +597,9 @@ TGoalVec Explore::getAllPossibleSubgoals()
case Obj::MONOLITH_TWO_WAY:
case Obj::SUBTERRANEAN_GATE:
auto tObj = dynamic_cast<const CGTeleport *>(obj);
if(tObj)
{
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
objs.push_back (obj);
}
assert(ai->knownTeleportChannels.find(tObj->channel) != ai->knownTeleportChannels.end());
if(TeleportChannel::IMPASSABLE != ai->knownTeleportChannels[tObj->channel]->passability)
objs.push_back (obj);
}
}
else