Apply the same pattern to ACE_Markers

This commit is contained in:
esteldunedain 2016-02-23 19:32:39 -03:00
parent b32732cad0
commit b2c672e6c7
3 changed files with 10 additions and 7 deletions

View File

@ -9,9 +9,9 @@
// request marker data for JIP
if (isMultiplayer && {!isServer} && {hasInterface}) then {
private _logic = createGroup sideLogic createUnit ["Logic", [0,0,0], [], 0, "NONE"];
[QGVAR(sendMarkersJIP), [_logic]] call EFUNC(common,serverEvent);
GVAR(localLogic) = sideLogic createUnit ["Logic", [0,0,0], [], 0, "NONE"];
GVAR(localGroup) = createGroup GVAR(localLogic);
[QGVAR(sendMarkersJIP), [GVAR(localLogic)]] call EFUNC(common,serverEvent);
};
GVAR(mapDisplaysWithDrawEHs) = [];

View File

@ -21,5 +21,5 @@ TRACE_1("params",_logic);
[
QGVAR(setMarkerJIP),
[_logic],
[GETGVAR(allMapMarkers,[]), GETGVAR(allMapMarkersProperties,[]), _logic]
[GETGVAR(allMapMarkers,[]), GETGVAR(allMapMarkersProperties,[])]
] call EFUNC(common,targetEvent);

View File

@ -17,8 +17,8 @@
*/
#include "script_component.hpp"
params ["_allMapMarkers", "_allMapMarkersProperties", "_logic"];
TRACE_3("params",_allMapMarkers,_allMapMarkersProperties,_logic);
params ["_allMapMarkers", "_allMapMarkersProperties"];
TRACE_3("params",_allMapMarkers,_allMapMarkersProperties);
{
private _index = _allMapMarkers find _x;
@ -51,4 +51,7 @@ TRACE_3("params",_allMapMarkers,_allMapMarkersProperties,_logic);
false
} count allMapMarkers;
deleteVehicle _logic;
deleteGroup GVAR(localGroup);
GVAR(localGroup) = nil;
deleteVehicle GVAR(localLogic);
GVAR(localLogic) = nil;