瀏覽代碼

Do not use VisitableObjects - BlockedObjects should suffice

Dydzio 1 年之前
父節點
當前提交
e56b8e86e5
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. 1 6
      lib/gameState/CGameState.cpp
  2. 1 1
      lib/mapping/CMapDefines.h

+ 1 - 6
lib/gameState/CGameState.cpp

@@ -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);
 				}
 			}
 		}

+ 1 - 1
lib/mapping/CMapDefines.h

@@ -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;