Fixed incorrect return values in some key handlers:

*Wind info
*Protractor
This commit is contained in:
ulteq 2015-04-15 12:53:02 +02:00
parent 42dbd8f5d2
commit 9f289e1721
4 changed files with 5 additions and 7 deletions

View File

@ -22,9 +22,9 @@ if (GVAR(Protractor)) exitWith {
1 cutText ["", "PLAIN"];
true
};
if (weaponLowered ACE_player) exitWith { true };
if (vehicle ACE_player != ACE_player) exitWith { true };
if (currentWeapon ACE_player != primaryWeapon ACE_player) exitWith { true };
if (weaponLowered ACE_player) exitWith { false };
if (vehicle ACE_player != ACE_player) exitWith { false };
if (currentWeapon ACE_player != primaryWeapon ACE_player) exitWith { false };
2 cutText ["", "PLAIN"];
EGVAR(weather,WindInfo) = false;

View File

@ -5,7 +5,6 @@
// Statement
[] call FUNC(displayProtractor);
false
},
{false},
[37, [true, true, false]], false, 0] call CBA_fnc_addKeybind; // (CTRL + SHIFT + K)

View File

@ -18,7 +18,6 @@
// Statement
[] call FUNC(displayWindInfo);
false
},
{false},
[37, [true, false, false]], false, 0] call CBA_fnc_addKeybind; // (SHIFT + K)

View File

@ -19,8 +19,8 @@ if (GVAR(WindInfo)) exitWith {
0 cutText ["", "PLAIN"];
true
};
if (underwater ACE_player) exitWith { true };
if (vehicle ACE_player != ACE_player) exitWith { true };
if (underwater ACE_player) exitWith { false };
if (vehicle ACE_player != ACE_player) exitWith { false };
2 cutText ["", "PLAIN"];
EGVAR(advanced_ballistics,Protractor) = false;