mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
VCAI: explicitly check for teleportation between subterranean gates
This commit is contained in:
parent
8f8d237d5d
commit
496338813c
@ -129,7 +129,7 @@ void VCAI::heroMoved(const TryMoveHero & details)
|
||||
{
|
||||
if(cb->isTeleportChannelBidirectional(t1->channel))
|
||||
{
|
||||
if(o1->ID == Obj::SUBTERRANEAN_GATE)
|
||||
if(o1->ID == Obj::SUBTERRANEAN_GATE && o1->ID == o2->ID) // We need to only add subterranean gates in knownSubterraneanGates. Used for features not yet ported to use teleport channels
|
||||
{
|
||||
knownSubterraneanGates[o1] = o2;
|
||||
knownSubterraneanGates[o2] = o1;
|
||||
|
Loading…
Reference in New Issue
Block a user