From 8afb686a43ba148720a5e89d82432f77e85c4e17 Mon Sep 17 00:00:00 2001 From: Chris Cardozo Date: Sun, 8 Sep 2019 17:06:03 -0400 Subject: [PATCH] Add missing function; correct undefined variable error --- .../Compiles/Functions/GMS_fnc_ai_offloadToClients.sqf | 1 + @GMS/addons/custom_server/Compiles/blck_functions.sqf | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_ai_offloadToClients.sqf b/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_ai_offloadToClients.sqf index 4cc1292..6a05624 100644 --- a/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_ai_offloadToClients.sqf +++ b/@GMS/addons/custom_server/Compiles/Functions/GMS_fnc_ai_offloadToClients.sqf @@ -58,6 +58,7 @@ diag_log format[ // Reset locality to the server //diag_log format["_fnc_ai_offloadToClients: setting locality of group %1 to server",_group]; _group setGroupOwner 2; + #ifdef blck_debugMode if (blck_debugOn) then { diff --git a/@GMS/addons/custom_server/Compiles/blck_functions.sqf b/@GMS/addons/custom_server/Compiles/blck_functions.sqf index 278147e..4f9f01e 100644 --- a/@GMS/addons/custom_server/Compiles/blck_functions.sqf +++ b/@GMS/addons/custom_server/Compiles/blck_functions.sqf @@ -121,7 +121,8 @@ private _functions = [ //["blck_fnc_sm_AddScubaGroup","\q\addons\custom_server\Compiles\Missions\GMS_fnc_sm_AddScubaGroup.sqf"], //["blck_fnc_sm_AddSurfaceVehicle","\q\addons\custom_server\Compiles\Missions\GMS_fnc_sm_AddSurfaceVehicle.sqf"], ["blck_fnc_sm_AddSDVVehicle","\q\addons\custom_server\Compiles\Missions\GMS_sm_AddSDVVehicle.sqf"], - + ["blck_fnc_sm_AddGroupToArray", "\q\addons\custom_server\Missions\Static\Code\GMS_fnc_sm_AddGroupToArray.sqf"], + // Group-related functions ["blck_fnc_spawnGroup","\q\addons\custom_server\Compiles\Groups\GMS_fnc_spawnGroup.sqf"], // Spawn a single group and populate it with AI units] ["blck_fnc_setupWaypoints","\q\addons\custom_server\Compiles\Groups\GMS_fnc_setupWaypoints.sqf"], // Set default waypoints for a group @@ -209,12 +210,6 @@ private _functions = [ missionnamespace setvariable [_name,compileFinal preprocessFileLineNumbers _path]; } foreach _functions; -if (blck_ai_offload_to_client) then -{ - publicVariable "blck_fnc_setNextWaypoint"; - publicVariable "blck_fnc_changeToMoveWaypoint"; - publicVariable "blck_fnc_changeToSADWaypoint"; -}; #ifdef GRGserver blck_fnc_broadcastServerFPS = compileFinal preprocessFileLineNumbers "\q\addons\custom_server\Compiles\Functions\GMS_fnc_broadcastServerFPS.sqf"; diag_log "blck_functions loaded using GRGserver settings ---- >>>> ";