Skip to content

Commit

Permalink
Merge pull request #320 from CBATeam/fix_InitPost_onRespawn
Browse files Browse the repository at this point in the history
fix onRespawn not working with initPost event, fix #318
  • Loading branch information
commy2 committed Apr 30, 2016
2 parents 85b0b95 + d682428 commit 338571a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/xeh/fnc_compileEventHandlers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private _resultNames = [];
};

// init event handlers that should run on respawn again, onRespawn = 1
if (_eventName == "init" && {getNumber (_x >> "onRespawn") == 1}) then {
if (toLower _eventName in ["init", "initpost"] && {getNumber (_x >> "onRespawn") == 1}) then {
_eventFunc = _eventFunc + "(_this select 0) addEventHandler ['Respawn', " + str _eventFunc + "];";
};
} else {
Expand Down

0 comments on commit 338571a

Please sign in to comment.