From c33592d01bb77531df36d1e5b3800741c6416fdd Mon Sep 17 00:00:00 2001 From: nordsoft Date: Wed, 31 Aug 2022 01:03:35 +0400 Subject: [PATCH] Randomly shuffle required objects to avoid patterns --- lib/rmg/ObjectManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rmg/ObjectManager.cpp b/lib/rmg/ObjectManager.cpp index 5846c8bf5..06f037e00 100644 --- a/lib/rmg/ObjectManager.cpp +++ b/lib/rmg/ObjectManager.cpp @@ -27,7 +27,7 @@ void ObjectManager::process() { zone.fractalize(); - createRequiredObjects(); + createRequiredObjects(); } void ObjectManager::init() @@ -220,6 +220,7 @@ bool ObjectManager::createRequiredObjects() { logGlobal->trace("Creating required objects"); + RandomGeneratorUtil::randomShuffle(requiredObjects, generator.rand); for(const auto & object : requiredObjects) { auto * obj = object.first;