Merge pull request #4232 from acemod/fixFcsUI

Fix missing zeroing UI on vehicles without FCS
This commit is contained in:
Glowbal 2016-08-13 11:24:20 +02:00 committed by GitHub
commit 822b1f6894
2 changed files with 3 additions and 2 deletions

View File

@ -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);
};
};
};

View File

@ -143,7 +143,8 @@ class CfgVehicles {
GVAR(Enabled) = 1;
GVAR(MaxDistance) = 2000;
discreteDistance[] = {};
discreteDistanceInitIndex = 0;};
discreteDistanceInitIndex = 0;
};
class CommanderTurret: CommanderTurret {
GVAR(Enabled) = 0;
};