1
0
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:
Ivan Savenko
2022-12-07 22:51:32 +02:00
parent 49cbd5adc9
commit d85ee019ec
11 changed files with 30 additions and 39 deletions

View File

@ -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))
{