From 36503abe5bdd1f81feb61efaf967e7ba485661b2 Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sat, 22 Jun 2024 17:30:58 -0600 Subject: [PATCH] fix no human players connected abstain --- addons/lifecycle/functions/fnc_localSpawnPass.sqf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/lifecycle/functions/fnc_localSpawnPass.sqf b/addons/lifecycle/functions/fnc_localSpawnPass.sqf index 35c6c7a..defe9d9 100644 --- a/addons/lifecycle/functions/fnc_localSpawnPass.sqf +++ b/addons/lifecycle/functions/fnc_localSpawnPass.sqf @@ -1,8 +1,10 @@ #include "..\script_component.hpp" -if ((ALL_HUMAN_PLAYERS isEqualTo []) && (GVAR(spawnOnlyWithPlayers)) && (GVAR(shouldWarnSpawnAbstain))) exitWith { - INFO("no human players connected, will abstain from spawning civilians"); - GVAR(shouldWarnSpawnAbstain) = false; +if ((ALL_HUMAN_PLAYERS isEqualTo []) && (GVAR(spawnOnlyWithPlayers))) exitWith { + if (GVAR(shouldWarnSpawnAbstain)) then { + INFO("no human players connected, will abstain from spawning civilians"); + GVAR(shouldWarnSpawnAbstain) = false; + }; }; GVAR(shouldWarnSpawnAbstain) = true;