diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-12 16:07:46 +0200 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-07-12 17:06:40 +0200 |
commit | faabf7d64658ae47842b4ccabdb4b68513f3cdf7 (patch) | |
tree | c6068758e0e9b7cd504acb93e8830b95215f97d2 /src/game | |
parent | 267a7f3eb261f8e9ad63570a2f39e18fc2a91b1c (diff) |
fix a bunch of compiler warnings
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_pmove.c | 1 | ||||
-rw-r--r-- | src/game/g_active.c | 1 | ||||
-rw-r--r-- | src/game/g_admin.c | 1 | ||||
-rw-r--r-- | src/game/g_buildable.c | 2 | ||||
-rw-r--r-- | src/game/g_client.c | 1 | ||||
-rw-r--r-- | src/game/g_cmds.c | 1 | ||||
-rw-r--r-- | src/game/g_combat.c | 3 | ||||
-rw-r--r-- | src/game/g_main.c | 3 |
8 files changed, 1 insertions, 12 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index d5719a5..be1a695 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1238,7 +1238,6 @@ static void PM_AirMove( void ) usercmd_t cmd; float accel; // CPM - float wishspeed2; // CPM float velscale;//classes temp.var velscale = BG_Class( pm->ps->stats[ STAT_CLASS ] )->airAcceleration; diff --git a/src/game/g_active.c b/src/game/g_active.c index 95f00d6..c21eec0 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -610,7 +610,6 @@ void ClientTimerActions( gentity_t *ent, int msec ) qboolean walking = qfalse, stopped = qfalse, crouched = qfalse, jumping = qfalse, strafing = qfalse; - int i; ucmd = &ent->client->pers.cmd; diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 90f42c8..f424505 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -3346,7 +3346,6 @@ qboolean G_admin_settitle( gentity_t *ent ) int i; gentity_t *vic = NULL; g_admin_admin_t *a = NULL; - g_admin_level_t *l = NULL; int na; int len; diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index c1e34bb..3114792 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1060,7 +1060,6 @@ Think function for Alien Overmind */ void AOvermind_Think( gentity_t *self ) { - vec3_t range = { OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE }; int i; if( self->spawned && ( self->health > 0 ) ) @@ -2748,7 +2747,6 @@ G_QueueBuildPoints */ void G_QueueBuildPoints( gentity_t *self ) { - gentity_t *powerEntity; int queuePoints; queuePoints = G_QueueValue( self ); diff --git a/src/game/g_client.c b/src/game/g_client.c index a3c7a67..0f96ce6 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -284,7 +284,6 @@ find the nearest impregnated human for spawning static gentity_t *G_SelectAlienImplantedSpawn( vec3_t preference ) { int i; - float r; gentity_t *search, *spot = NULL; for( i = 0; i < level.num_entities; i++ ) diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index c1da4e0..f3eaa83 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2598,7 +2598,6 @@ void Cmd_Build_f( gentity_t *ent ) float dist; vec3_t origin, normal; team_t team; - char buf[128]; vec3_t dims; if( ent->client->pers.namelog->denyBuild ) diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 6acf6b7..6c8d3fd 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -234,12 +234,11 @@ player_die */ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath ) { - gentity_t *ent, *ent2; + gentity_t *ent; int anim; int killer, killerHP; int i; char *killerName, *obit; - vec3_t dir; if( self->client->ps.pm_type == PM_DEAD ) return; diff --git a/src/game/g_main.c b/src/game/g_main.c index 1cbf897..b792bd3 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1192,7 +1192,6 @@ Recalculate the quantity of building points available to the teams void G_CalculateBuildPoints( void ) { int i; - buildable_t buildable; // BP queue updates while( level.alienBuildPointQueue > 0 && @@ -2234,9 +2233,7 @@ CheckCvars void CheckCvars( void ) { static int lastPasswordModCount = -1; - static int lastMarkDeconModCount = -1; static int lastSDTimeModCount = -1; - static int lastNumZones = 0; if( g_password.modificationCount != lastPasswordModCount ) { |