Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings
This commit is contained in:
parent
1ea7ab1f42
commit
23f6fd1633
85 changed files with 246 additions and 496 deletions
|
@ -539,7 +539,6 @@ void ClientEvents( gentity_t *ent, int oldEventSequence ) {
|
|||
int event;
|
||||
gclient_t *client;
|
||||
int damage;
|
||||
vec3_t dir;
|
||||
vec3_t origin, angles;
|
||||
// qboolean fired;
|
||||
gitem_t *item;
|
||||
|
@ -567,7 +566,6 @@ void ClientEvents( gentity_t *ent, int oldEventSequence ) {
|
|||
} else {
|
||||
damage = 5;
|
||||
}
|
||||
VectorSet (dir, 0, 0, 1);
|
||||
ent->pain_debounce_time = level.time + 200; // no normal pain sound
|
||||
G_Damage (ent, NULL, NULL, NULL, NULL, damage, 0, MOD_FALLING);
|
||||
break;
|
||||
|
@ -1106,15 +1104,12 @@ while a slow client may have multiple ClientEndFrame between ClientThink.
|
|||
*/
|
||||
void ClientEndFrame( gentity_t *ent ) {
|
||||
int i;
|
||||
clientPersistant_t *pers;
|
||||
|
||||
if ( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) {
|
||||
SpectatorClientEndFrame( ent );
|
||||
return;
|
||||
}
|
||||
|
||||
pers = &ent->client->pers;
|
||||
|
||||
// turn off any expired powerups
|
||||
for ( i = 0 ; i < MAX_POWERUPS ; i++ ) {
|
||||
if ( ent->client->ps.powerups[ i ] < level.time ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue