summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_buildable.c2
-rw-r--r--src/cgame/cg_servercmds.c2
-rw-r--r--src/cgame/cg_view.c4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index 89d23eca..5aae1d20 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -122,7 +122,7 @@ static void CG_Creep( centity_t *cent )
else
frac = 1.0f;
}
- else if( time < 0 )
+ else
{
msec = cg.time + time;
if( msec >= 0 && msec < CREEP_SCALEDOWN_TIME )
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index e955e8ab..ae4a2619 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -1068,7 +1068,7 @@ static void CG_ParseVoice( void )
return;
vChan = atoi( CG_Argv( 2 ) );
- if( vChan < 0 || vChan >= VOICE_CHAN_NUM_CHANS )
+ if( (int)vChan < 0 || vChan >= VOICE_CHAN_NUM_CHANS )
return;
if( cg_teamChatsOnly.integer && vChan != VOICE_CHAN_TEAM )
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index 253bc105..f7f42474 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -925,9 +925,7 @@ static int CG_CalcFov( void )
{
f = ( cg.time - cg.zoomTime ) / (float)ZOOM_TIME;
- if ( f > 1.0f )
- fov_y = fov_y;
- else
+ if ( f <= 1.0f )
fov_y = zoomFov + f * ( fov_y - zoomFov );
// BUTTON_ATTACK2 is held so zoom next time