1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
This commit is contained in:
Tomasz Zieliński 2023-05-20 07:23:00 +02:00
parent 02586214a1
commit c27b8383e7
2 changed files with 2 additions and 11 deletions

View File

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

View File

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