replace confusing for loops that have no body

This commit is contained in:
mezz committed 2015-03-03 00:03:06 -08:00
1 parent 76ceb7a46c
commit fc0ef3eef0
1 file changed
+6 -8
@@ -75,10 +75,9 @@ public class TextureHabitatLocator extends TextureAtlasSprite {
if (!hasSpin) {
currentAngle = targetAngle;
} else {
double angleChange;
for (angleChange = targetAngle - currentAngle; angleChange < -Math.PI; angleChange += (Math.PI * 2D)) {
;
double angleChange = targetAngle - currentAngle;
while (angleChange < -Math.PI) {
angleChange += (Math.PI * 2D);
}
while (angleChange >= Math.PI) {
@@ -98,10 +97,9 @@ public class TextureHabitatLocator extends TextureAtlasSprite {
this.currentAngle += this.angleDelta;
}
int i;
for (i = (int) ((this.currentAngle / (Math.PI * 2D) + 1.0d) * this.framesTextureData.size()) % this.framesTextureData.size(); i < 0; i = (i + this.framesTextureData.size()) % this.framesTextureData.size()) {
;
int i = (int) ((this.currentAngle / (Math.PI * 2D) + 1.0d) * this.framesTextureData.size()) % this.framesTextureData.size();
while (i < 0) {
i = (i + this.framesTextureData.size()) % this.framesTextureData.size();
}
if (i != this.frameCounter) {