From 61257b0f6bd2e6879c5e05532760f585f063fa11 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 25 Dec 2011 15:33:37 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/premap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/premap.c b/polymer/eduke32/source/premap.c index 8c3bd7b95..d8c6cfec2 100644 --- a/polymer/eduke32/source/premap.c +++ b/polymer/eduke32/source/premap.c @@ -1726,9 +1726,8 @@ static inline void clearfrags(void) p->ps->frag = p->ps->fraggedself = 0; - if (i == MAXPLAYERS-1) - break; - p = &g_player[i+1]; + if (i == 0) + continue; Bmemset(p->frags, 0, sizeof(g_player[i].frags)); Bmemset(p->wchoice, 0, sizeof(g_player[i].wchoice));