Fix check on whether DynamicDebris.sqf has run

The initial isNil() check in DynamicDebris.sqf actually prevents this script from running. This inverts to !isNil() to allow it to run at least once
This commit is contained in:
Grahame 2017-12-19 12:42:27 -05:00 committed by GitHub
parent 83e90a964d
commit e976db66a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
private ["_allRoads","_allowDebris","_debris","_debrisCounter","_debrisLocations","_debrisLocationsKey","_debrisLocationsTMP","_debug","_disallowedLocations","_expiresDebris","_export","_instanceID","_intersections","_marker","_maxDebrisLimit","_nearbyLocations","_newDebrisCounter","_object","_offsetX","_offsetY","_position","_response","_rng","_rngChance","_scriptHiveKey","_seed","_selectedDebris","_upperPos","_worldSize"];
//[[[end]]]
// exit if already ran once.
if (isNil "EPOCH_DynamicDebrisEnabled") exitWith {};
if !(isNil "EPOCH_DynamicDebrisEnabled") exitWith {};
EPOCH_DynamicDebrisEnabled = true;
_debug = false;
_expiresDebris = 604800;