Skip to content

Commit

Permalink
Remove unused variable from SV_CalcStats
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Aug 11, 2024
1 parent 83a4242 commit 8216f7e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Quake/sv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ void SV_CalcStats(client_t *client, int *statsi, float *statsf, const char **sta
size_t i;
edict_t *ent = client->edict;
//FIXME: string stats!
int items;
eval_t *val = GetEdictFieldValue(ent, qcvm->extfields.items2);
if (val)
items = (int)ent->v.items | ((int)val->_float << 23);
else
items = (int)ent->v.items | ((int)pr_global_struct->serverflags << 28);

memset(statsi, 0, sizeof(*statsi)*MAX_CL_STATS);
memset(statsf, 0, sizeof(*statsf)*MAX_CL_STATS);
Expand Down

0 comments on commit 8216f7e

Please sign in to comment.