Merge pull request #3756 from acemod/uiShowHud

UI - Don't overwrite other showHud indexes
This commit is contained in:
jonpas 2016-05-04 21:50:42 +00:00
commit 59e412032e

View File

@ -23,15 +23,13 @@ if (!_force && {!GVAR(allowSelectiveUI)}) exitWith {
[LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured);
};
private _shownHUD = shownHUD; // [hud, info, radar, compass, direction, menu, group, cursors]
["ui", [
_shownHUD select 0,
true,
GVAR(soldierVehicleWeaponInfo),
GVAR(vehicleRadar),
GVAR(vehicleCompass),
_shownHUD select 4,
true,
GVAR(commandMenu),
GVAR(groupBar),
_shownHUD select 7
true
]] call EFUNC(common,showHud);