diff options
Diffstat (limited to 'progs/samples')
-rw-r--r-- | progs/samples/star.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/samples/star.c b/progs/samples/star.c index 62d7d854852..570c3e19f9d 100644 --- a/progs/samples/star.c +++ b/progs/samples/star.c @@ -129,6 +129,9 @@ void MoveStars(void) if (stars[n].rotation > MAXANGLES) { stars[n].rotation = 0.0; } + else if (stars[n].rotation < 0.0) { + stars[n].rotation += 360.0; + } } } |