From 5985f3bd26cb02f135cf00d4720dcf0305995616 Mon Sep 17 00:00:00 2001 From: jonpas Date: Thu, 11 Aug 2016 22:34:38 +0200 Subject: [PATCH] Fix missing zeroing UI on vehicles without FCS --- addons/fcs/ACE_UI.hpp | 2 +- addons/fcs/CfgVehicles.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/fcs/ACE_UI.hpp b/addons/fcs/ACE_UI.hpp index 9423e49656..c285248b83 100644 --- a/addons/fcs/ACE_UI.hpp +++ b/addons/fcs/ACE_UI.hpp @@ -1,7 +1,7 @@ class ACE_UI { class gunnerZeroing { class conditions { - ADDON = "(false)"; + ADDON = QUOTE(getNumber ([ARR_2(vehicle ACE_player, ACE_player call CBA_fnc_turretPath)] call CBA_fnc_getTurret >> 'ace_fcs_enabled') != 1); }; }; }; diff --git a/addons/fcs/CfgVehicles.hpp b/addons/fcs/CfgVehicles.hpp index 45051c912d..82572f2c68 100644 --- a/addons/fcs/CfgVehicles.hpp +++ b/addons/fcs/CfgVehicles.hpp @@ -143,7 +143,8 @@ class CfgVehicles { GVAR(Enabled) = 1; GVAR(MaxDistance) = 2000; discreteDistance[] = {}; - discreteDistanceInitIndex = 0;}; + discreteDistanceInitIndex = 0; + }; class CommanderTurret: CommanderTurret { GVAR(Enabled) = 0; };