mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Give every Zone its own RNG
This commit is contained in:
@ -45,7 +45,7 @@ void ObstaclePlacer::process()
|
||||
//TODO: Set prohibited area in ObstacleProxy :?
|
||||
prohibitedArea = zone.freePaths() + zone.areaUsed() + manager->getVisitableArea();
|
||||
|
||||
auto objs = createObstacles(generator.rand);
|
||||
auto objs = createObstacles(zone.getRand());
|
||||
mapProxy->insertObjects(objs);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user