1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Fix Admiral's Hat whirlpool immunity. Reduce usage of

convertFromVisitablePos
This commit is contained in:
Ivan Savenko
2024-06-11 14:31:11 +00:00
parent 6a624cbaf7
commit 9c05e80315
4 changed files with 10 additions and 12 deletions

View File

@ -90,9 +90,7 @@ void HeroMovementController::showTeleportDialog(const CGHeroInstance * hero, Tel
for(size_t i = 0; i < exits.size(); ++i)
{
const auto * teleporter = LOCPLINT->cb->getObj(exits[i].first);
if(teleporter && teleporter->visitableAt(nextNode.coord))
if(exits[i].second == nextNode.coord)
{
// Remove this node from path - it will be covered by teleportation
//LOCPLINT->localState->removeLastNode(hero);