make sure rotation plugged into sin/cos lookup tables is always positive, fixes FP exception

This commit is contained in:
Brian Paul
2001-05-09 17:14:19 +00:00
parent f2bfc66c5d
commit 7b9ff48d02

View File

@@ -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;
}
}
}