diff --git a/SEWorldGenPlugin/GUI/PluginWorldSettings.cs b/SEWorldGenPlugin/GUI/PluginWorldSettings.cs index 3d5cb2d..0c2f843 100644 --- a/SEWorldGenPlugin/GUI/PluginWorldSettings.cs +++ b/SEWorldGenPlugin/GUI/PluginWorldSettings.cs @@ -131,7 +131,8 @@ protected override void BuildControls() if (m_isNewGame) { - PlSettings = MySettings.Static.Settings; + PlSettings = new MyObjectBuilder_PluginSettings(); + PlSettings.GeneratorSettings.FirstPlanetCenter = MySettings.Static.Settings.GeneratorSettings.FirstPlanetCenter; PlSettings.GeneratorSettings.PlanetSettings.BlacklistedPlanets = MySettings.Static.Settings.GeneratorSettings.PlanetSettings.BlacklistedPlanets; PlSettings.GeneratorSettings.PlanetSettings.Moons = MySettings.Static.Settings.GeneratorSettings.PlanetSettings.Moons; PlSettings.GeneratorSettings.PlanetSettings.MandatoryPlanets = MySettings.Static.Settings.GeneratorSettings.PlanetSettings.MandatoryPlanets; diff --git a/SEWorldGenPlugin/Generator/ProceduralGen/ProceduralAsteroidsRingModule.cs b/SEWorldGenPlugin/Generator/ProceduralGen/ProceduralAsteroidsRingModule.cs index 14cf374..80f5bc5 100644 --- a/SEWorldGenPlugin/Generator/ProceduralGen/ProceduralAsteroidsRingModule.cs +++ b/SEWorldGenPlugin/Generator/ProceduralGen/ProceduralAsteroidsRingModule.cs @@ -27,7 +27,7 @@ public class ProceduralAsteroidsRingModule : ProceduralModule { private const int OBJECT_SIZE_MIN = 128; private const int OBJECT_SIZE_MAX = 512; - private const int CELL_SIZE = OBJECT_SIZE_MAX * 20; + private const int CELL_SIZE_ = OBJECT_SIZE_MAX * 20; private HashSet m_NotSavedMaps; private bool m_saving; @@ -36,7 +36,7 @@ public class ProceduralAsteroidsRingModule : ProceduralModule private Type m_providerType; private float m_density; - public ProceduralAsteroidsRingModule(int seed) : base(seed, CELL_SIZE) + public ProceduralAsteroidsRingModule(int seed) : base(seed, CELL_SIZE_) { m_NotSavedMaps = new HashSet(); MySession.Static.OnSavingCheckpoint += delegate @@ -55,7 +55,7 @@ public ProceduralAsteroidsRingModule(int seed) : base(seed, CELL_SIZE) public override MyProceduralCell GenerateCell(ref Vector3I id) { - MyProceduralCell cell = new MyProceduralCell(id, CELL_SIZE); + MyProceduralCell cell = new MyProceduralCell(id, CELL_SIZE_); int cellSeed = GetCellSeed(ref id); using (MyRandom.Instance.PushSeed(cellSeed)) @@ -63,7 +63,7 @@ public override MyProceduralCell GenerateCell(ref Vector3I id) int index = 0; int subCellSize = (int)(OBJECT_SIZE_MAX * 2 / m_density); - int subcells = CELL_SIZE / subCellSize; + int subcells = CELL_SIZE_ / subCellSize; Vector3I subcellId = Vector3I.Zero; Vector3I max = new Vector3I(subcells - 1); @@ -73,7 +73,7 @@ public override MyProceduralCell GenerateCell(ref Vector3I id) Vector3D position = new Vector3D(MyRandom.Instance.NextDouble(), MyRandom.Instance.NextDouble(), MyRandom.Instance.NextDouble()); position += (Vector3D)subcellId; position *= subCellSize; - position += id * CELL_SIZE; + position += id * CELL_SIZE_; if (!MyEntities.IsInsideWorld(position)) continue;