From db425035a41b4d089f25be43aac3f676f5f0576b Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 19 Oct 2024 21:14:45 +0200 Subject: [PATCH] dont need to always check this 16 times if we already know theres more than one player ingame --- src/k_director.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/k_director.c b/src/k_director.c index 1bbe438b9..fc6e211f6 100644 --- a/src/k_director.c +++ b/src/k_director.c @@ -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);