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,7 +1762,8 @@ bool CGameHandler::moveHero( ObjectInstanceID hid, int3 dst, ui8 teleporting, bo
|
|||||||
}
|
}
|
||||||
else if(visitDest == VISIT_DEST)
|
else if(visitDest == VISIT_DEST)
|
||||||
{
|
{
|
||||||
visitObjectOnTile(t, h);
|
if(!transit || !CGTeleport::isTeleport(t.topVisitableObj()))
|
||||||
|
visitObjectOnTile(t, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
queries.popIfTop(moveQuery);
|
queries.popIfTop(moveQuery);
|
||||||
|
Loading…
Reference in New Issue
Block a user