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:
helixhorned 2011-12-25 15:33:37 +00:00
parent 9f2153d0ea
commit 61257b0f6b

View file

@ -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));