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:
parent
9004b88c7e
commit
e56b8e86e5
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user