From 9434d43561d5a17577664f725af2131d96462db4 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Wed, 1 Mar 2017 13:42:21 -0500 Subject: [PATCH] Fix undefined error fnc_spawnObjects My mistake from 26c1bd9 --- SQF/dayz_code/init/compiles.sqf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 64a5dc0e7..ec16758ce 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -145,11 +145,6 @@ if (!isDedicated) then { //System player_spawn_2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_spawn_2.sqf"; - - //Spawn waterHoleProxies manually if townGenerator is disabled - if (!dayz_townGenerator && {toLower worldName in ["chernarus","namalsk","napf"]}) then { - execVM ("\z\addons\dayz_code\system\mission\" + (toLower worldName) + "\waterHoleProxy.sqf"); - }; //Crafting fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_updateCraftUI.sqf"; @@ -664,10 +659,15 @@ object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compil DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf"; fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf"; zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf"; - call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf"; + if (dayz_townGenerator) then { call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // pseudo random for plantSpanwer +} else { + //Spawn waterHoleProxies manually if townGenerator is disabled + if (!isDedicated && (toLower worldName in ["chernarus","namalsk","napf"])) then { + execVM ("\z\addons\dayz_code\system\mission\" + (toLower worldName) + "\waterHoleProxy.sqf"); + }; }; // EPOCH ADDITIONS