simply prevent display EH loading after revive.

Thanks to @Ignatz-HeMan for the report.
This commit is contained in:
vbawol 2016-11-26 10:18:06 -06:00
parent 7913ee0ea7
commit 8e1d960496

View File

@ -1,6 +1,8 @@
// make sure we wait for Display #46
waitUntil {!(isNull (findDisplay 46))};
// setup display EH's
if (isNil "EPOCH_display_setup_complete") then {
{
(findDisplay 46) displayAddEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)];
} forEach (["CfgEpochClient", "displayAddEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
@ -8,6 +10,8 @@ waitUntil {!(isNull (findDisplay 46))};
player switchMove "";
// setup Epoch Hud
call epoch_dynamicHUD_start;
EPOCH_display_setup_complete = true;
};
_prevEquippedItem = [];
_damagePlayer = damage player;