Skip to content

Commit

Permalink
can be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Mar 11, 2024
1 parent a85611f commit b7d072a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/lifecycle/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GVAR(excludedParentClasses) = [
"Land_i_Barracks_V1_F" // yes, is parent for others!
];

GVAR(shouldWarnSpawnPass) = true;
GVAR(shouldWarnSpawnAbstain) = true;
GVAR(shouldWarnDespawnAbstain) = true;

[] call FUNC(initConfig);
Expand Down
6 changes: 3 additions & 3 deletions addons/lifecycle/functions/fnc_localSpawnPass.sqf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "..\script_component.hpp"

if ((ALL_HUMAN_PLAYERS isEqualTo []) && (GVAR(spawnOnlyWithPlayers)) && (GVAR(shouldWarnSpawnPass))) exitWith {
if ((ALL_HUMAN_PLAYERS isEqualTo []) && (GVAR(spawnOnlyWithPlayers)) && (GVAR(shouldWarnSpawnAbstain))) exitWith {
INFO("no human players connected, will abstain from spawning civilians");
GVAR(shouldWarnSpawnPass) = false;
GVAR(shouldWarnSpawnAbstain) = false;
};

GVAR(shouldWarnSpawnPass) = true;
GVAR(shouldWarnSpawnAbstain) = true;

private _minCivUpdateTime = GVAR(minCivUpdateTime);
private _minFps = GVAR(minCivOwnerFps);
Expand Down

0 comments on commit b7d072a

Please sign in to comment.