Merge pull request #3844 from acemod/fixShowHud

Fix showHud if set before display loaded
This commit is contained in:
Glowbal 2016-06-02 10:39:46 +02:00
commit 2e54310ff4

View File

@ -262,6 +262,15 @@ call FUNC(assignedItemFix);
enableCamShake true;
//FUNC(showHud) needs to be refreshed if it was set during mission init
["ace_infoDisplayChanged", {
GVAR(showHudHash) params ["", "_masks"];
if (!(_masks isEqualTo [])) then {
[] call FUNC(showHud);
};
}] call CBA_fnc_addEventHandler;
//////////////////////////////////////////////////
// Eventhandler to set player names
//////////////////////////////////////////////////