Use isTeleportChannel callback functions to check teleport channel type
This commit is contained in:
1 parent
0c1a37e5a7
commit
8f8d237d5d
3 files changed
+12
-28
No files matched your search
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user