summaryrefslogtreecommitdiff
path: root/src/cgame/cg_view.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
committerMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
commit56382169c394bc6a1e63a91fdd59b58ac3974986 (patch)
treeca7b9e762d4dfc7a11bc01e7dcbe072f465dc343 /src/cgame/cg_view.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/cgame/cg_view.c')
-rw-r--r--src/cgame/cg_view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index eb6e88d..1221fe9 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -579,7 +579,7 @@ void CG_OffsetFirstPersonView( void )
vec3_t predictedVelocity;
int timeDelta;
float bob2;
- vec3_t normal, baseOrigin;
+ vec3_t normal/*, baseOrigin*/;
playerState_t *ps = &cg.predictedPlayerState;
BG_GetClientNormal( ps, normal );
@@ -590,7 +590,7 @@ void CG_OffsetFirstPersonView( void )
origin = cg.refdef.vieworg;
angles = cg.refdefViewAngles;
- VectorCopy( origin, baseOrigin );
+ // VectorCopy( origin, baseOrigin );
// if dead, fix the angle and don't add any kick
if( cg.snap->ps.stats[ STAT_HEALTH ] <= 0 )
@@ -738,7 +738,7 @@ void CG_OffsetFirstPersonView( void )
usercmd_t cmd;
int cmdNum;
float fFraction, rFraction, uFraction;
- float fFraction2, rFraction2, uFraction2;
+ // float fFraction2, rFraction2, uFraction2;
cmdNum = trap_GetCurrentCmdNumber();
trap_GetUserCmd( cmdNum, &cmd );
@@ -756,9 +756,9 @@ void CG_OffsetFirstPersonView( void )
if( uFraction > 1.0f )
uFraction = 1.0f;
- fFraction2 = -sin( fFraction * M_PI / 2 );
- rFraction2 = -sin( rFraction * M_PI / 2 );
- uFraction2 = -sin( uFraction * M_PI / 2 );
+ // fFraction2 = -sin( fFraction * M_PI / 2 );
+ // rFraction2 = -sin( rFraction * M_PI / 2 );
+ // uFraction2 = -sin( uFraction * M_PI / 2 );
if( cmd.forwardmove > 0 )
VectorMA( origin, STRUGGLE_DIST * fFraction, forward, origin );