Skip to content

Commit

Permalink
Fix dual menu, add deprecating message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dystopian committed Sep 9, 2017
1 parent f11c06b commit a037955
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/refuel/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ private _sourceClasses = [];
private _fuelCargo = getNumber (_x >> QGVAR(fuelCargo));
if (_fuelCargo > 0 || {_fuelCargo == REFUEL_INFINITE_FUEL}) then {
private _sourceClass = configName _x;
if (isClass (_x >> "ACE_Actions" >> "ACE_MainActions" >> QGVAR(Refuel))) exitWith {
if (!isClass (inheritsFrom _x >> "ACE_Actions" >> "ACE_MainActions" >> QGVAR(Refuel))) then {
ACE_DEPRECATED(FORMAT_1(QUOTE(GVAR(Refuel) interaction menu in %1),_sourceClass),"3.13.0",QUOTE(GVAR(fuelCargo) config value));
};
};
// check if we can use actions with inheritance
if (
!isText (_x >> "EventHandlers" >> "CBA_Extended_EventHandlers" >> "init") // addActionToClass relies on XEH init
Expand Down

0 comments on commit a037955

Please sign in to comment.