1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Reverted incorrect logic. Likely the fix for hota Prison.

This commit is contained in:
Tomasz Zieliński
2023-12-18 17:18:13 +01:00
parent 9b12f54972
commit bbb3e701ab

View File

@@ -41,9 +41,7 @@ const Area & Object::Instance::getBlockedArea() const
std::set<int3> blockedArea = dObject.getBlockedPos();
dBlockedAreaCache.assign(rmg::Tileset(blockedArea.begin(), blockedArea.end()));
if(dObject.isVisitable() || dBlockedAreaCache.empty())
if (!dObject.isBlockedVisitable())
// Do not assume blocked tile is accessible
dBlockedAreaCache.add(dObject.visitablePos());
dBlockedAreaCache.add(dObject.visitablePos());
}
return dBlockedAreaCache;
}