fix some warnings, fabs instead of abs

This commit is contained in:
Felix Ruess
2015-11-19 17:36:27 +01:00
parent 4456593211
commit 718abd61fc
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ void nps_set_time_factor(float time_factor)
if (time_factor < 0.0 || time_factor > 100.0) {
return;
}
if (abs(nps_main.host_time_factor - time_factor) < 0.01) {
if (fabs(nps_main.host_time_factor - time_factor) < 0.01) {
return;
}