Copy and paste derp

This commit is contained in:
Calclavia 2013-11-20 20:21:40 +08:00
parent ce458d2e77
commit 49e19b6793

View file

@ -237,6 +237,8 @@ public class FXElectricBolt extends EntityFX
int lastActiveSeg = 0;
for (BoltSegment segment : segments)
{
if (segment != null)
{
if (segment.splitID > lastSplitCalc)
{
@ -247,6 +249,7 @@ public class FXElectricBolt extends EntityFX
lastActiveSeg = segment.id;
}
}
lastActiveSegment.put(lastSplitCalc, lastActiveSeg);
lastSplitCalc = 0;
@ -437,7 +440,8 @@ public class FXElectricBolt extends EntityFX
prevDiff = diffNorm.clone().translate(prevDiffNorm).normalize();
sinPrev = Math.sin(diffNorm.anglePreNorm(prevDiffNorm.clone().scale(-1)) / 2);
}
else {
else
{
prevDiff = difference.clone().normalize();
sinPrev = 1;
}
@ -449,7 +453,8 @@ public class FXElectricBolt extends EntityFX
nextDiff = diffNorm.clone().translate(nextDiffNorm).normalize();
sinNext = Math.sin(diffNorm.anglePreNorm(nextDiffNorm.clone().scale(-1)) / 2);
}
else {
else
{
nextDiff = difference.clone().normalize();
sinNext = 1;
}