#231 - Close DAGR if player dead/null

This commit is contained in:
PabstMirror 2015-03-23 17:34:40 -05:00
parent 50f5e2c858
commit ed3fc5919f

View File

@ -75,8 +75,7 @@ if ((_oldShowMode == DISPLAY_MODE_CLOSED) && {GVAR(currentShowMode) != DISPLAY_M
[{ [{
PARAMS_2(_args,_pfID); PARAMS_2(_args,_pfID);
EXPLODE_1_PVT(_args,_player); EXPLODE_1_PVT(_args,_player);
if ((isNull ace_player) || {!alive ace_player} || {ace_player != _player} || {!("ACE_microDAGR" in (items ace_player))} || {GVAR(currentShowMode) == DISPLAY_MODE_CLOSED}) then {
if ((ace_player != _player) || {!("ACE_microDAGR" in (items ace_player))} || {GVAR(currentShowMode) == DISPLAY_MODE_CLOSED}) then {
//Close Display if still open: //Close Display if still open:
if (GVAR(currentShowMode) != DISPLAY_MODE_CLOSED) then { if (GVAR(currentShowMode) != DISPLAY_MODE_CLOSED) then {
[DISPLAY_MODE_CLOSED] call FUNC(openDisplay); [DISPLAY_MODE_CLOSED] call FUNC(openDisplay);