Skip to content

Commit

Permalink
Added fix for #75 where cube grids would not generate asteroids corre…
Browse files Browse the repository at this point in the history
…ctly.
  • Loading branch information
8vogt committed Mar 4, 2021
1 parent 3c10a4b commit 1512498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void TrackEntity(MyEntity entity)
}
if(entity is MyCubeGrid)
{
TrackEntityWithRange(entity, entity.PositionComp.WorldAABB.HalfExtents.Length());
TrackEntityWithRange(entity, MySession.Static.Settings.ViewDistance);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public override void Verify()
MinMaxAsteroidObjects.Verify();
MinMaxOrbitDistance.Verify();

MyValueVerifier.VerifyFloat(0f, 1f, 0.6f, "AsteroidDensity", ref AsteroidDensity);
MyValueVerifier.VerifyFloat(0f, 2f, 0.6f, "AsteroidDensity", ref AsteroidDensity);
MyValueVerifier.VerifyLong(-1, long.MaxValue, -1, "WorldSize", ref WorldSize);

PlanetSettings.Verify();
Expand Down

0 comments on commit 1512498

Please sign in to comment.