simplify startedInFreePlay check
This commit is contained in:
1 parent
e0445a9636
commit
3cccacca23
1 file changed
+9
-15
+9
-15
@@ -2634,26 +2634,20 @@ static void P_SetupPlayer(void)
|
||||
thwompsactive = false;
|
||||
spbplace = -1;
|
||||
|
||||
startedInFreePlay = false;
|
||||
startedInFreePlay = true;
|
||||
for (UINT8 nump = 0, i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
UINT8 nump = 0;
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
if (!playeringame[i] || players[i].spectator)
|
||||
{
|
||||
if (!playeringame[i] || players[i].spectator)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
nump++;
|
||||
if (nump == 2)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (nump <= 1)
|
||||
nump++;
|
||||
|
||||
if (nump > 1)
|
||||
{
|
||||
startedInFreePlay = true;
|
||||
startedInFreePlay = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user