mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Rewrite a couple of lines in clearfrags() to look more idiomatic.
git-svn-id: https://svn.eduke32.com/eduke32@2206 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9f2153d0ea
commit
61257b0f6b
1 changed files with 2 additions and 3 deletions
|
@ -1726,9 +1726,8 @@ static inline void clearfrags(void)
|
||||||
|
|
||||||
p->ps->frag = p->ps->fraggedself = 0;
|
p->ps->frag = p->ps->fraggedself = 0;
|
||||||
|
|
||||||
if (i == MAXPLAYERS-1)
|
if (i == 0)
|
||||||
break;
|
continue;
|
||||||
p = &g_player[i+1];
|
|
||||||
|
|
||||||
Bmemset(p->frags, 0, sizeof(g_player[i].frags));
|
Bmemset(p->frags, 0, sizeof(g_player[i].frags));
|
||||||
Bmemset(p->wchoice, 0, sizeof(g_player[i].wchoice));
|
Bmemset(p->wchoice, 0, sizeof(g_player[i].wchoice));
|
||||||
|
|
Loading…
Reference in a new issue