X Tutup
Skip to content

Don't crash when there are few background stars#5778

Merged
sturnclaw merged 1 commit intopioneerspacesim:masterfrom
Gliese852:fix-background-small-density
Feb 24, 2024
Merged

Don't crash when there are few background stars#5778
sturnclaw merged 1 commit intopioneerspacesim:masterfrom
Gliese852:fix-background-small-density

Conversation

@Gliese852
Copy link
Contributor

If the user sets a small AmountOfBackgroundStars, a small diameter ball is scanned. So small that the number of tasks becomes comparable to the height of this ball, and rounding problems begin to appear.

Rethought the intervals for tasks a little, now it seems to be fairly uniform for such cases.

Also, if the user selects the number of stars to be 0, we simply do nothing.

Fixes #5777

If the user sets a small AmountOfBackgroundStars, a small diameter ball
is scanned. So small that the number of tasks becomes comparable to the
height of this ball, and rounding problems begin to appear.

Rethought the intervals for tasks a little, now it seems to be fairly
uniform for such cases.

Also, if the user selects the number of stars to be 0, we simply do
nothing.
@sturnclaw sturnclaw merged commit 2737c49 into pioneerspacesim:master Feb 24, 2024
@Gliese852 Gliese852 deleted the fix-background-small-density branch February 24, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A starless and bible black universe causes segfault at start of game

2 participants

X Tutup