summaryrefslogtreecommitdiff
path: root/src/game/g_active.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/game/g_active.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index d5dfd21..2fdb514 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -544,7 +544,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd )
pmove_t pm;
gclient_t *client;
int clientNum;
- qboolean attack1, attack3, following, queued;
+ qboolean attack1, /*attack3,*/ following, queued;
client = ent->client;
@@ -553,8 +553,8 @@ 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 );
+ /*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;
@@ -756,8 +756,8 @@ 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, jumping = qfalse;
+ // qboolean strafing = qfalse;
int i;
@@ -771,8 +771,8 @@ void ClientTimerActions( gentity_t *ent, int msec )
else if( aForward <= 64 && aRight <= 64 )
walking = qtrue;
- if( aRight > 0 )
- strafing = qtrue;
+ // if( aRight > 0 )
+ // strafing = qtrue;
if( ucmd->upmove > 0 )
jumping = qtrue;
@@ -2296,7 +2296,7 @@ while a slow client may have multiple ClientEndFrame between ClientThink.
*/
void ClientEndFrame( gentity_t *ent )
{
- clientPersistant_t *pers;
+ // clientPersistant_t *pers;
if( ent->client->sess.spectatorState != SPECTATOR_NOT )
{
@@ -2304,7 +2304,7 @@ void ClientEndFrame( gentity_t *ent )
return;
}
- pers = &ent->client->pers;
+ // pers = &ent->client->pers;
//
// If the end of unit layout is displayed, don't give