diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:16 +0200 |
commit | 787ae313812f0a385f3cec9216fa0e67df148ca7 (patch) | |
tree | 1a237cba93c991aa09280b2765a23a41179a91ab /src/cgame/cg_buildable.c | |
parent | 979776bf1d7319218d84dd488ed69a45a854dce1 (diff) |
fix a bunch of C-specific programming errors
detected by Clang
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index e7b4d85..eed8e0e 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -920,8 +920,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; |