Skip to content

Commit

Permalink
fix no human players connected abstain
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Jun 22, 2024
1 parent 1f46fda commit 36503ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addons/lifecycle/functions/fnc_localSpawnPass.sqf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 36503ab

Please sign in to comment.