mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Place zones in order given by template. Yields better results in a number of cases.
This commit is contained in:
@@ -104,7 +104,6 @@ void CZonePlacer::placeOnGrid(CRandomGenerator* rand)
|
|||||||
GridType grid(boost::extents[gridSize][gridSize]);
|
GridType grid(boost::extents[gridSize][gridSize]);
|
||||||
|
|
||||||
TZoneVector zonesVector(zones.begin(), zones.end());
|
TZoneVector zonesVector(zones.begin(), zones.end());
|
||||||
RandomGeneratorUtil::randomShuffle(zonesVector, *rand);
|
|
||||||
|
|
||||||
//Place first zone
|
//Place first zone
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user