Skip to content

Commit

Permalink
Bugfix: Finally fixed the asteroid density for issue #75. This should…
Browse files Browse the repository at this point in the history
… make the default asteroid denstiy the same as in version 1.7
  • Loading branch information
8vogt committed Mar 18, 2021
1 parent 64a740c commit 7654b49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected override MyProceduralCell GenerateCellSeeds(Vector3I cellId)
MyProceduralCell cell = new MyProceduralCell(cellId, CELL_SIZE);
int cellSeed = CalculateCellSeed(cellId);
int index = 0;
double subCellSize = OBJECT_SIZE_MAX * 1.5f / settings.AsteroidDensity;
double subCellSize = OBJECT_SIZE_MAX * 1f / settings.AsteroidDensity;
int subcells = (int)(CELL_SIZE / subCellSize);

using (MyRandom.Instance.PushSeed(cellSeed))
Expand Down

0 comments on commit 7654b49

Please sign in to comment.