Fix setVariablePublic reseting to old values (#4938)

* Fix setVariablePublic reseting to old values

* Don't drop delay time
This commit is contained in:
PabstMirror 2017-02-24 19:19:39 -06:00 committed by Glowbal
parent 863d54973d
commit 2c7a5fee76

View File

@ -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;