Cookoff - fix locality of fire_removeFireSource event (#8907)

This commit is contained in:
PabstMirror 2022-05-13 19:54:09 -05:00 committed by GitHub
parent 56df203477
commit 38b4de9382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,9 @@ if (isServer) then {
if (_elapsedTime >= _time) exitWith {
deleteVehicle _light;
deleteVehicle _sound;
[QEGVAR(fire,removeFireSource), [_obj]] call CBA_fnc_globalEvent;
if (isServer) then {
[QEGVAR(fire,removeFireSource), [_obj]] call CBA_fnc_localEvent;
};
[_pfh] call CBA_fnc_removePerFrameHandler;
};
private _factor = (1 + (_elapsedTime / 2) min 2);