mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Move road randomizer to separate file
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "../constants/StringConstants.h"
|
||||
#include "../filesystem/Filesystem.h"
|
||||
#include "CZonePlacer.h"
|
||||
#include "CRoadRandomizer.h"
|
||||
#include "TileInfo.h"
|
||||
#include "Zone.h"
|
||||
#include "Functions.h"
|
||||
@@ -329,7 +330,9 @@ void CMapGenerator::genZones()
|
||||
placer->placeZones(rand.get());
|
||||
placer->assignZones(rand.get());
|
||||
placer->RemoveRoadsForWideConnections();
|
||||
placer->dropRandomRoads(rand.get());
|
||||
|
||||
CRoadRandomizer roadRandomizer(*map);
|
||||
roadRandomizer.dropRandomRoads(rand.get());
|
||||
|
||||
logGlobal->info("Zones generated successfully");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user