diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index e4f9675b6..c2ac6aaf0 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -894,7 +894,7 @@ static void CG_BuildableStatusDisplay( centity_t *cent ) // center point origin[ 2 ] += mins[ 2 ]; - origin[ 2 ] += ( abs( mins[ 2 ] ) + abs( maxs[ 2 ] ) ) / 2; + origin[ 2 ] += ( fabs( mins[ 2 ] ) + fabs( maxs[ 2 ] ) ) / 2; entNum = cg.predictedPlayerState.clientNum; diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index 9f2f73d8e..493215e33 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -1077,7 +1077,7 @@ voice clientNum vChan cmdNum trackNum [sayText] static void CG_ParseVoice( void ) { int clientNum; - voiceChannel_t vChan; + int vChan; char sayText[ MAX_SAY_TEXT] = {""}; voiceTrack_t *track; clientInfo_t *ci;