Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/functions.cc')
-rw-r--r--src/math/functions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/functions.cc b/src/math/functions.cc
index c4b832c..7fb40be 100644
--- a/src/math/functions.cc
+++ b/src/math/functions.cc
@@ -66,10 +66,10 @@ float sgnf(float value)
{
if (value < 0)
return -1;
- else if (value == 0)
- return 0;
+ else if (value > 0)
+ return 1;
- return 1;
+ return 0;
}
} // namespace math