mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
CGameHandler::moveHero allow transit, but for teleports only
This commit is contained in:
@@ -1762,7 +1762,8 @@ bool CGameHandler::moveHero( ObjectInstanceID hid, int3 dst, ui8 teleporting, bo
|
||||
}
|
||||
else if(visitDest == VISIT_DEST)
|
||||
{
|
||||
visitObjectOnTile(t, h);
|
||||
if(!transit || !CGTeleport::isTeleport(t.topVisitableObj()))
|
||||
visitObjectOnTile(t, h);
|
||||
}
|
||||
|
||||
queries.popIfTop(moveQuery);
|
||||
|
Reference in New Issue
Block a user