1
0
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:
ArseniyShestakov 2015-03-08 17:08:57 +03:00
parent 21aaad6972
commit 3773859e9d

View File

@ -1762,6 +1762,7 @@ bool CGameHandler::moveHero( ObjectInstanceID hid, int3 dst, ui8 teleporting, bo
} }
else if(visitDest == VISIT_DEST) else if(visitDest == VISIT_DEST)
{ {
if(!transit || !CGTeleport::isTeleport(t.topVisitableObj()))
visitObjectOnTile(t, h); visitObjectOnTile(t, h);
} }