Use isTeleportChannel callback functions to check teleport channel type

This commit is contained in:
ArseniyShestakov committed 2015-03-09 02:13:40 +03:00
1 parent 0c1a37e5a7
commit 8f8d237d5d
3 files changed
+12 -28

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ void VCAI::heroMoved(const TryMoveHero & details)
auto t2 = dynamic_cast<const CGTeleport *>(o2);
if(t1 && t2)
{
if(ETeleportChannelType::BIDIRECTIONAL == cb->getTeleportChannelType(t1->channel))
if(cb->isTeleportChannelBidirectional(t1->channel))
{
if(o1->ID == Obj::SUBTERRANEAN_GATE)
{