summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2012-07-12 21:35:39 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:17 +0000
commit22f97fece2bce63f57e0b8fca275281429705c9c (patch)
treea989d666e918998aefcc7678d5d3784399dd756d /src/game
parent8d448680f5b3bcd2a67a3684308bb948e4d3ddad (diff)
* Fix a bunch of variable set but not used warnings
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_slidemove.c4
-rw-r--r--src/game/g_active.c18
-rw-r--r--src/game/g_main.c3
3 files changed, 4 insertions, 21 deletions
diff --git a/src/game/bg_slidemove.c b/src/game/bg_slidemove.c
index bd61401b..222d1f74 100644
--- a/src/game/bg_slidemove.c
+++ b/src/game/bg_slidemove.c
@@ -290,7 +290,6 @@ PM_StepSlideMove
qboolean PM_StepSlideMove( qboolean gravity, qboolean predictive )
{
vec3_t start_o, start_v;
- vec3_t down_o, down_v;
trace_t trace;
vec3_t normal;
vec3_t step_v, step_vNormal;
@@ -331,9 +330,6 @@ qboolean PM_StepSlideMove( qboolean gravity, qboolean predictive )
return stepped;
}
- VectorCopy( pm->ps->origin, down_o );
- VectorCopy( pm->ps->velocity, down_v );
-
VectorCopy( start_o, up );
VectorMA( up, STEPSIZE, normal, up );
diff --git a/src/game/g_active.c b/src/game/g_active.c
index aad05967..5adfa847 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -387,7 +387,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd )
pmove_t pm;
gclient_t *client;
int clientNum;
- qboolean attack1, attack3, following, queued;
+ qboolean attack1, following, queued;
client = ent->client;
@@ -396,8 +396,6 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd )
attack1 = ( client->buttons & BUTTON_ATTACK ) &&
!( client->oldbuttons & BUTTON_ATTACK );
- attack3 = ( client->buttons & BUTTON_USE_HOLDABLE ) &&
- !( client->oldbuttons & BUTTON_USE_HOLDABLE );
// We are in following mode only if we are following a non-spectating client
following = client->sess.spectatorState == SPECTATOR_FOLLOW;
@@ -565,8 +563,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
usercmd_t *ucmd;
int aForward, aRight;
qboolean walking = qfalse, stopped = qfalse,
- crouched = qfalse, jumping = qfalse,
- strafing = qfalse;
+ crouched = qfalse;
int i;
ucmd = &ent->client->pers.cmd;
@@ -579,12 +576,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
else if( aForward <= 64 && aRight <= 64 )
walking = qtrue;
- if( aRight > 0 )
- strafing = qtrue;
-
- if( ucmd->upmove > 0 )
- jumping = qtrue;
- else if( ent->client->ps.pm_flags & PMF_DUCKED )
+ if( ucmd->upmove <= 0 && ent->client->ps.pm_flags & PMF_DUCKED )
crouched = qtrue;
client = ent->client;
@@ -1828,16 +1820,12 @@ while a slow client may have multiple ClientEndFrame between ClientThink.
*/
void ClientEndFrame( gentity_t *ent )
{
- clientPersistant_t *pers;
-
if( ent->client->sess.spectatorState != SPECTATOR_NOT )
{
SpectatorClientEndFrame( ent );
return;
}
- pers = &ent->client->pers;
-
//
// If the end of unit layout is displayed, don't give
// the player any normal movement attributes
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 2380a334..5d5fbed6 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -570,14 +570,13 @@ void G_InitGame( int levelTime, int randomSeed, int restart )
{
char serverinfo[ MAX_INFO_STRING ];
qtime_t qt;
- int t;
trap_GetServerinfo( serverinfo, sizeof( serverinfo ) );
G_LogPrintf( "------------------------------------------------------------\n" );
G_LogPrintf( "InitGame: %s\n", serverinfo );
- t = trap_RealTime( &qt );
+ trap_RealTime( &qt );
G_LogPrintf("RealTime: %04i/%02i/%02i %02i:%02i:%02i\n",
qt.tm_year+1900, qt.tm_mon+1, qt.tm_mday,
qt.tm_hour, qt.tm_min, qt.tm_sec );