mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Removed CGHeroInstance::convertPosition method
This commit is contained in:
@ -2326,7 +2326,7 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, ui8 teleporting, boo
|
||||
}
|
||||
|
||||
logGlobal->trace("Player %d (%s) wants to move hero %d from %s to %s", asker, asker.getStr(), hid.getNum(), h->pos.toString(), dst.toString());
|
||||
const int3 hmpos = h->convertPosition(dst, false);
|
||||
const int3 hmpos = dst - h->getVisitableOffset();
|
||||
|
||||
if (!gs->map->isInTheMap(hmpos))
|
||||
{
|
||||
|
Reference in New Issue
Block a user