From 8ab2f0b3081f53692836035aedd2546b607decc8 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 2 Feb 2015 00:14:07 +0100 Subject: fix some usages of abs(), part 1: non-gamelogic-changing changes detected by Clang changes in tr_main.c reviewed by SmileTheory --- src/cgame/cg_buildable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cgame/cg_buildable.c') diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 5aae1d20..ca170fd6 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -897,8 +897,7 @@ static void CG_BuildableStatusDisplay( centity_t *cent ) VectorCopy( cent->lerpOrigin, origin ); // center point - origin[ 2 ] += mins[ 2 ]; - origin[ 2 ] += ( abs( mins[ 2 ] ) + abs( maxs[ 2 ] ) ) / 2; + origin[ 2 ] += ( mins[ 2 ] + maxs[ 2 ] ) / 2; entNum = cg.predictedPlayerState.clientNum; -- cgit