mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
CGameHandler::moveHero allow transit, but for teleports only
This commit is contained in:
parent
21aaad6972
commit
3773859e9d
@ -1762,6 +1762,7 @@ bool CGameHandler::moveHero( ObjectInstanceID hid, int3 dst, ui8 teleporting, bo
|
||||
}
|
||||
else if(visitDest == VISIT_DEST)
|
||||
{
|
||||
if(!transit || !CGTeleport::isTeleport(t.topVisitableObj()))
|
||||
visitObjectOnTile(t, h);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user