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:
@ -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);
|
||||
|
Reference in New Issue
Block a user