summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/particle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index c1f2d9edd..aca1d9083 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -140,9 +140,9 @@ bool Particle::update()
if (!dist.x)
break;
- invHypotenuse = 2.0f / static_cast<float>(fabs(dist.x))
+ invHypotenuse = 2.0f / (static_cast<float>(fabs(dist.x))
+ static_cast<float>(fabs(dist.y))
- + static_cast<float>(fabs(dist.z));
+ + static_cast<float>(fabs(dist.z)));
break;
default:
invHypotenuse = 1.0f / static_cast<float>(sqrt(