dont need to always check this 16 times if we already know theres more than one player ingame
This commit is contained in:
1 parent
ed7aa81527
commit
db425035a4
1 file changed
+4
@@ -47,7 +47,11 @@ boolean K_DirectorIsPlayerAlone(void)
|
||||
{
|
||||
if (!playeringame[i] || players[i].spectator)
|
||||
continue;
|
||||
|
||||
pingame++;
|
||||
|
||||
if (pingame >= 2) // we dont need to check further
|
||||
break;
|
||||
}
|
||||
|
||||
return (pingame <= 1);
|
||||
|
||||
Reference in new issue
Block a user