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