mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use lazy evaluation
This commit is contained in:
parent
dec266a546
commit
04831267f2
@ -22,7 +22,7 @@ if (!GVAR(enabled) || isNull ACE_player) exitWith {};
|
||||
|
||||
private _vehicle = vehicle ACE_player;
|
||||
|
||||
private _landVehicle = _vehicle isKindOf "LandVehicle" || _vehicle isKindOf "Ship_F";
|
||||
private _landVehicle = _vehicle isKindOf "LandVehicle" || {_vehicle isKindOf "Ship_F"};
|
||||
private _airVehicle = _vehicle isKindOf "Air";
|
||||
|
||||
if (!_landVehicle && !_airVehicle) exitWith {
|
||||
|
Loading…
Reference in New Issue
Block a user