Skip to content

Commit

Permalink
don't use 'apply retroactively' for non init events
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed May 10, 2016
1 parent f3cf6ab commit e082192
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/xeh/fnc_addClassEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ if (_eventName == "FiredBIS") exitWith {
};
if !(_eventName in GVAR(EventsLowercase)) exitWith {false};

// don't use "apply retroactively" for non init events
if (_applyInitRetroactivly && {!(_eventName in ["init", "initpost"])}) then {
_applyInitRetroactivly = false;
};

// add events to already existing objects
private _entities = entities "" + allUnits;
private _eventVarName = format [QGVAR(%1), _eventName];
Expand Down

0 comments on commit e082192

Please sign in to comment.