mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update addons/frag/functions/fnc_dev_addRound.sqf
If the round isn't in the hashmap anymore, we have to stop the PFH. Brought code up to same standard as used in FUNC(dev_trackObj). - johnb432 Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
fa241cacb5
commit
61029ba723
@ -37,17 +37,22 @@ if (_isSidePlayer) then {
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
if (isGamePaused) exitWith {};
|
if (isGamePaused) exitWith {};
|
||||||
params ["_params", "_handle"];
|
params ["_projectile", "_handle"];
|
||||||
_params params ["_projectile"];
|
|
||||||
if (!alive _projectile) exitWith {
|
if (!alive _projectile) exitWith {
|
||||||
[_handle] call CBA_fnc_removePerFrameHandler;
|
[_handle] call CBA_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
private _projectileArray = GVAR(dev_trackLines) getOrDefault [getObjectID _projectile, -1];
|
|
||||||
if (_projectileArray isEqualType 0) exitWith {};
|
private _projectileArray = GVAR(dev_trackLines) get (getObjectID _projectile);
|
||||||
|
|
||||||
|
if (isNil "_projectileArray") exitWith {
|
||||||
|
[_handle] call CBA_fnc_removePerFrameHandler;
|
||||||
|
};
|
||||||
|
|
||||||
(_projectileArray#0) pushBack getPosATL _projectile;
|
(_projectileArray#0) pushBack getPosATL _projectile;
|
||||||
},
|
},
|
||||||
0,
|
0,
|
||||||
[_projectile]
|
_projectile
|
||||||
] call CBA_fnc_addPerFrameHandler;
|
] call CBA_fnc_addPerFrameHandler;
|
||||||
|
|
||||||
if (!_addProjectileEventHandlers) exitWith {};
|
if (!_addProjectileEventHandlers) exitWith {};
|
||||||
|
Loading…
Reference in New Issue
Block a user