mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
premap.c: write out inline function clearfrags() for clarity.
git-svn-id: https://svn.eduke32.com/eduke32@2201 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9a3ae8df08
commit
bf00465922
1 changed files with 17 additions and 8 deletions
|
@ -1718,12 +1718,21 @@ static void resetpspritevars(char g)
|
|||
|
||||
static inline void clearfrags(void)
|
||||
{
|
||||
int32_t i = 0;
|
||||
int32_t i;
|
||||
|
||||
while (i<ud.multimode)
|
||||
for (i=0; i<ud.multimode; i++)
|
||||
{
|
||||
g_player[i].ps->frag = g_player[i].ps->fraggedself = 0, i++;
|
||||
clearbufbyte(&g_player[i].frags[0],MAXPLAYERS<<1,0L);
|
||||
playerdata_t *p = &g_player[i];
|
||||
|
||||
p->ps->frag = p->ps->fraggedself = 0;
|
||||
|
||||
if (i == MAXPLAYERS)
|
||||
break;
|
||||
p = &g_player[i+1];
|
||||
|
||||
Bmemset(p->frags, 0, sizeof(g_player[i].frags));
|
||||
Bmemset(p->wchoice, 0, sizeof(g_player[i].wchoice));
|
||||
p->vote = p->gotvote = p->pingcnt = p->playerquitflag = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1731,10 +1740,10 @@ void G_ResetTimers(void)
|
|||
{
|
||||
vel = svel = angvel = horiz = 0;
|
||||
|
||||
totalclock = 0L;
|
||||
cloudtotalclock = 0L;
|
||||
ototalclock = 0L;
|
||||
lockclock = 0L;
|
||||
totalclock = 0;
|
||||
cloudtotalclock = 0;
|
||||
ototalclock = 0;
|
||||
lockclock = 0;
|
||||
ready2send = 1;
|
||||
g_levelTextTime = 85;
|
||||
g_moveThingsCount = 0;
|
||||
|
|
Loading…
Reference in a new issue