Tomasz Zieliński 2 年之前
父节点
当前提交
c27b8383e7
共有 2 个文件被更改,包括 2 次插入11 次删除
  1. 2 2
      lib/rmg/RockFiller.cpp
  2. 0 9
      lib/rmg/Zone.h

+ 2 - 2
lib/rmg/RockFiller.cpp

@@ -30,7 +30,7 @@ class TileInfo;
 
 void RockFiller::process()
 {
-    //Do that only once
+	//Do that only once
 	auto lockVec = tryLockAll<RockFiller>();
 	if (!lockVec.empty())
 	{
@@ -75,7 +75,7 @@ void RockFiller::processMap()
 
 void RockFiller::init()
 {
-    DEPENDENCY_ALL(RockPlacer);
+	DEPENDENCY_ALL(RockPlacer);
 	POSTFUNCTION_ALL(RoadPlacer);
 }
 

+ 0 - 9
lib/rmg/Zone.h

@@ -65,14 +65,11 @@ public:
 	rmg::Path searchPath(const rmg::Area & src, bool onlyStraight, const std::function<bool(const int3 &)> & areafilter = AREA_NO_FILTER) const;
 	rmg::Path searchPath(const int3 & src, bool onlyStraight, const std::function<bool(const int3 &)> & areafilter = AREA_NO_FILTER) const;
 
-	//std::vector<std:> & getAllJobs() const;
 	TModificators getModificators();
 
 	template<class T>
 	T* getModificator()
 	{
-		//TODO: Protect with recursive mutex?
-
 		for(auto & m : modificators)
 			if(auto * mm = dynamic_cast<T*>(m.get()))
 				return mm;
@@ -109,12 +106,6 @@ protected:
 	//template info
 	si32 townType;
 	TerrainId terrainType;
-
-/*
-private:
-	mutable boost::shared_mutex mx; //Used for area access
-	using Lock = boost::unique_lock<boost::shared_mutex>;
-*/
 };
 
 VCMI_LIB_NAMESPACE_END