mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix setVariablePublic reseting to old values (#4938)
* Fix setVariablePublic reseting to old values * Don't drop delay time
This commit is contained in:
parent
863d54973d
commit
2c7a5fee76
@ -48,6 +48,7 @@ TRACE_2("Starting Embargo", _varName, _delay);
|
|||||||
|
|
||||||
//If value at start of embargo doesn't equal current, then broadcast and start new embargo
|
//If value at start of embargo doesn't equal current, then broadcast and start new embargo
|
||||||
if (!(_value isEqualTo _curValue)) then {
|
if (!(_value isEqualTo _curValue)) then {
|
||||||
|
_this set [2, _curValue];
|
||||||
_this call FUNC(setVariablePublic);
|
_this call FUNC(setVariablePublic);
|
||||||
};
|
};
|
||||||
}, _this, _delay] call CBA_fnc_waitAndExecute;
|
}, _this, _delay] call CBA_fnc_waitAndExecute;
|
||||||
|
Loading…
Reference in New Issue
Block a user