Skip to content

Commit

Permalink
Merge pull request #301 from CBATeam/linux
Browse files Browse the repository at this point in the history
use BIS_fnc_selectRandom for 1.54 compat
  • Loading branch information
Killswitch00 committed Mar 19, 2016
2 parents 9f17700 + 355c31d commit 43e8577
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons/help/fnc_setCreditsLine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (CBA_DisableCredits) exitWith {};

// find addon with author
private _config = configFile >> "CfgPatches";
private _entry = selectRandom ("isArray (_x >> 'author')" configClasses _config);
private _entry = ("isArray (_x >> 'author') && {!(getArray (_x >> 'author') isEqualTo [])}" configClasses _config) call (uiNamespace getVariable "BIS_fnc_selectRandom"); //bwc for 1.54 (Linux build)

if (isNil "_entry") exitWith {};

Expand Down
2 changes: 0 additions & 2 deletions addons/jr/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F","A3_Weapons_F_Mark"};
author[] = {"Robalo"};
};
class asdg_jointmuzzles { //compat
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F","A3_Weapons_F_Mark"};
author[] = {"Robalo"};
};
};

Expand Down
1 change: 0 additions & 1 deletion addons/jr_prep/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CfgPatches {
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F","A3_Weapons_F_Mark"};
version = VERSION;
author[] = {"Robalo"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};
Expand Down
8 changes: 4 additions & 4 deletions addons/xeh/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class CfgPatches {
};

// Backwards compatibility
class cba_xeh_a3: ADDON {};
class Extended_EventHandlers: ADDON {};
class CBA_Extended_EventHandlers: ADDON {};
class cba_ee: ADDON {};
class cba_xeh_a3: ADDON {author[] = {};};
class Extended_EventHandlers: ADDON {author[] = {};};
class CBA_Extended_EventHandlers: ADDON {author[] = {};};
class cba_ee: ADDON {author[] = {};};
};

#include "CfgEventHandlers.hpp"
Expand Down

0 comments on commit 43e8577

Please sign in to comment.