Clarifying Parenthesis

This commit is contained in:
thedaneeffect committed 2021-03-09 14:53:57 -05:00
1 parent 6e1d6a4688
commit cc40cc2c67
40 files changed
+1828 -1828

No files matched your search

+8 -8
View File
@@ -47,19 +47,19 @@ public class ProjectileEntity extends Entity {
if (!aBoolean1579) {
double d = l - anInt1580;
double d2 = j - anInt1581;
double d3 = Math.sqrt(d * d + d2 * d2);
aDouble1585 = (double) anInt1580 + (d * (double) anInt1589) / d3;
aDouble1586 = (double) anInt1581 + (d2 * (double) anInt1589) / d3;
double d3 = Math.sqrt((d * d) + (d2 * d2));
aDouble1585 = (double) anInt1580 + ((d * (double) anInt1589) / d3);
aDouble1586 = (double) anInt1581 + ((d2 * (double) anInt1589) / d3);
aDouble1587 = anInt1582;
}
double d1 = (anInt1572 + 1) - i;
aDouble1574 = ((double) l - aDouble1585) / d1;
aDouble1575 = ((double) j - aDouble1586) / d1;
aDouble1576 = Math.sqrt(aDouble1574 * aDouble1574 + aDouble1575 * aDouble1575);
aDouble1576 = Math.sqrt((aDouble1574 * aDouble1574) + (aDouble1575 * aDouble1575));
if (!aBoolean1579) {
aDouble1577 = -aDouble1576 * Math.tan((double) anInt1588 * 0.02454369D);
}
aDouble1578 = (2D * ((double) k - aDouble1587 - aDouble1577 * d1)) / (d1 * d1);
aDouble1578 = (2D * ((double) k - aDouble1587 - (aDouble1577 * d1))) / (d1 * d1);
}
@Override
@@ -79,7 +79,7 @@ public class ProjectileEntity extends Entity {
model_1.labelFaces = null;
model_1.labelVertices = null;
}
if (aType_1592.anInt410 != 128 || aType_1592.anInt411 != 128) {
if ((aType_1592.anInt410 != 128) || (aType_1592.anInt411 != 128)) {
model_1.scale(aType_1592.anInt410, aType_1592.anInt410, aType_1592.anInt411);
}
model_1.rotateX(anInt1596);
@@ -91,9 +91,9 @@ public class ProjectileEntity extends Entity {
aBoolean1579 = true;
aDouble1585 += aDouble1574 * (double) i;
aDouble1586 += aDouble1575 * (double) i;
aDouble1587 += aDouble1577 * (double) i + 0.5D * aDouble1578 * (double) i * (double) i;
aDouble1587 += (aDouble1577 * (double) i) + (0.5D * aDouble1578 * (double) i * (double) i);
aDouble1577 += aDouble1578 * (double) i;
anInt1595 = (int) (Math.atan2(aDouble1574, aDouble1575) * 325.94900000000001D) + 1024 & 0x7ff;
anInt1595 = ((int) (Math.atan2(aDouble1574, aDouble1575) * 325.94900000000001D) + 1024) & 0x7ff;
anInt1596 = (int) (Math.atan2(aDouble1577, aDouble1576) * 325.94900000000001D) & 0x7ff;
if (aType_1592.aType_407 != null) {
for (anInt1594 += i; anInt1594 > aType_1592.aType_407.method258(anInt1593); ) {