mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Final fixes and tweaks
This commit is contained in:
@@ -189,7 +189,7 @@ Object::Object(CGObjectInstance & object):
|
||||
}
|
||||
|
||||
Object::Object(const Object & object):
|
||||
guarded(object.guarded),
|
||||
guarded(false),
|
||||
value(object.value)
|
||||
{
|
||||
for(const auto & i : object.dInstances)
|
||||
@@ -392,7 +392,11 @@ const Area & Object::getBorderAbove() const
|
||||
if(dBorderAboveCache.empty())
|
||||
{
|
||||
for(const auto & instance : dInstances)
|
||||
{
|
||||
if (instance.isRemovable() || instance.object().appearance->isVisitableFromTop())
|
||||
continue;
|
||||
dBorderAboveCache.unite(instance.getBorderAbove());
|
||||
}
|
||||
}
|
||||
return dBorderAboveCache;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user