summaryrefslogtreecommitdiff
path: root/src/utils/mathutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mathutils.cpp')
-rw-r--r--src/utils/mathutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mathutils.cpp b/src/utils/mathutils.cpp
index 0ad8f3fb..7d50c68f 100644
--- a/src/utils/mathutils.cpp
+++ b/src/utils/mathutils.cpp
@@ -54,5 +54,5 @@ float weightedAverage(float n1, float n2, float w)
if (w > 1.0f)
return n2;
- return (w * n2 + (1.0f - w) * n1) / 2.0f;
+ return ((w * n2) + ((1.0f - w) * n1));
}