1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-18 03:21:27 +02:00

Do not use VisitableObjects - BlockedObjects should suffice

This commit is contained in:
Dydzio 2024-09-26 21:25:02 +02:00
parent 9004b88c7e
commit e56b8e86e5
2 changed files with 2 additions and 7 deletions

View File

@ -962,12 +962,7 @@ void CGameState::initTimedEventsRemovableObjects()
{
for(const CGObjectInstance * object : getBlockingObjs(coordinate))
{
timedEvent.deletedObjectsInstances.insert(object);
}
for(const CGObjectInstance * object : getVisitableObjs(coordinate))
{
timedEvent.deletedObjectsInstances.insert(object);
timedEvent.deletedObjectsInstances.push_back(object);
}
}
}

View File

@ -44,7 +44,7 @@ public:
ui32 nextOccurrence; /// specifies after how many days the event will occur the next time; 0 if event occurs only one time
std::vector<int3> deletedObjectsCoordinates;
std::set<const CGObjectInstance*> deletedObjectsInstances;
std::vector<const CGObjectInstance*> deletedObjectsInstances;
std::vector<int3> unused;
std::set<const CGObjectInstance*> unused2;