This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit a33a904225e92ccacbcd7094732624e3d6a2a96b
Author: Brenton Bostick <bost...@gmail.com>
Date:   Sun Jul 9 15:00:56 2017 -0400

    Fix warning about using abs() with floats (#222)
---
 code/ui/ui_shared.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/code/ui/ui_shared.c b/code/ui/ui_shared.c
index b1718e7..f26d11b 100644
--- a/code/ui/ui_shared.c
+++ b/code/ui/ui_shared.c
@@ -1121,10 +1121,10 @@ void Menu_TransitionItemByName(menuDef_t *menu, const 
char *p, rectDef_t rectFro
       item->window.offsetTime = time;
                        memcpy(&item->window.rectClient, &rectFrom, 
sizeof(rectDef_t));
                        memcpy(&item->window.rectEffects, &rectTo, 
sizeof(rectDef_t));
-                       item->window.rectEffects2.x = abs(rectTo.x - 
rectFrom.x) / amt;
-                       item->window.rectEffects2.y = abs(rectTo.y - 
rectFrom.y) / amt;
-                       item->window.rectEffects2.w = abs(rectTo.w - 
rectFrom.w) / amt;
-                       item->window.rectEffects2.h = abs(rectTo.h - 
rectFrom.h) / amt;
+                       item->window.rectEffects2.x = fabs(rectTo.x - 
rectFrom.x) / amt;
+                       item->window.rectEffects2.y = fabs(rectTo.y - 
rectFrom.y) / amt;
+                       item->window.rectEffects2.w = fabs(rectTo.w - 
rectFrom.w) / amt;
+                       item->window.rectEffects2.h = fabs(rectTo.h - 
rectFrom.h) / amt;
       Item_UpdatePosition(item);
     }
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/ioquake3.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to