From 8606e95b5c8a5fadde99a253de91a661454460db Mon Sep 17 00:00:00 2001 From: Falkreon Date: Wed, 15 Apr 2009 00:44:52 -0400 Subject: HP Bar Gradual Changes Config (+ bugfixes) * Setup menu now has settings for the HP bar colors. * StatusWindow handles HP bar changes a little more consistently. * Fixed a bug that cut weightedAverage values in half, making the HP bar very dark. --- src/utils/mathutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') 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)); } -- cgit v1.2.3-70-g09d2