Skip to content

Commit

Permalink
fixes for undefined/uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wriley committed Oct 30, 2014
1 parent 01d4bf8 commit 652dc27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DZAI/scripts/setup_autoStaticSpawns.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (DZAI_debugLevel > 0) then {diag_log format ["DZAI Debug: DZAI is generating

if ((_placeType != "NameLocal") && {!(surfaceIsWater _placePos)}) then {
private ["_nearbldgs"];
_nearbldgs = _triggerPos nearObjects ["HouseBase",250];
_nearbldgs = _placePos nearObjects ["HouseBase",250];
if ((count _nearbldgs) > 19) then {
_ignoredObj = missionNamespace getVariable ["dayz_allowedObjects",[]];
_spawnPositions = [];
Expand All @@ -34,6 +34,7 @@ if (DZAI_debugLevel > 0) then {diag_log format ["DZAI Debug: DZAI is generating
_trigger setTriggerActivation ["ANY", "PRESENT", true];
_trigger setTriggerTimeout [10, 15, 20, true];
_trigger setTriggerText _placeName;
private ["_aiCount","_equipType","_patrolRad"];
switch (_placeType) do {
case "NameCityCapital":
{
Expand Down

0 comments on commit 652dc27

Please sign in to comment.