mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Remove dependencies of surface and underground zones
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "RoadPlacer.h"
|
||||
#include "ObjectManager.h"
|
||||
#include "ObstaclePlacer.h"
|
||||
#include "RockFiller.h"
|
||||
#include "../Functions.h"
|
||||
#include "../CMapGenerator.h"
|
||||
#include "../threadpool/MapProxy.h"
|
||||
@@ -28,6 +29,14 @@ void RoadPlacer::process()
|
||||
connectRoads();
|
||||
}
|
||||
|
||||
void RoadPlacer::init()
|
||||
{
|
||||
if (zone.isUnderground())
|
||||
{
|
||||
DEPENDENCY_ALL(RockFiller);
|
||||
}
|
||||
}
|
||||
|
||||
rmg::Area & RoadPlacer::areaForRoads()
|
||||
{
|
||||
return areaRoads;
|
||||
|
||||
Reference in New Issue
Block a user