Fix Googles Macros

This commit is contained in:
PabstMirror 2015-01-25 00:55:35 -06:00
parent 7e4407b9f5
commit c07120c439
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ player addEventHandler ["Explosion", {
if (GETBROKEN) exitWith {};
if (((_this select 1) call FUNC(GetExplosionIndex)) < getNumber(ConfigFile >> "CfgGlasses" >> GVAR(Current) >> "ACE_Resistance")) exitWith {};
if !(ace_player call FUNC(isGogglesVisible)) exitWith {["GlassesCracked",[ace_player]] call EFUNC(common,localEvent);};
_effects = GETGLASSES(ace_player,GLASSESDEFAULT);
_effects = GETGLASSES(ace_player);
_effects set [BROKEN, true];
SETGLASSES(ace_player,_effects);
if (getText(ConfigFile >> "CfgGlasses" >> GVAR(Current) >> "ACE_OverlayCracked") != "" && {cameraOn == ace_player}) then {

View File

@ -19,7 +19,7 @@
if (cameraOn != ace_player || {call FUNC(externalCamera)}) exitWith{false};
private "_dirtImage";
_effects = GETGLASSES(ace_player,GLASSESDEFAULT);
_effects = GETGLASSES(ace_player);
_effects set [DIRT, true];
SETGLASSES(ace_player,_effects);