Skip to content

Commit

Permalink
Replace BIS function with engine command (#932)
Browse files Browse the repository at this point in the history
Replace BIS function (*BIS_fnc_getCfgData*) with with engine command (*getText*).

Links:
[BIS_fnc_getCfgData](https://community.bistudio.com/wiki/BIS_fnc_getCfgData)
[getText](https://community.bistudio.com/wiki/getText)
  • Loading branch information
Wakbub authored and commy2 committed Jun 30, 2018
1 parent 667299c commit 41174e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/accessory/fnc_switchAttachment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Examples:
(end)
Author:
Robalo
Robalo, optimized by Anton
---------------------------------------------------------------------------- */
#include "script_component.hpp"

Expand Down Expand Up @@ -67,8 +67,8 @@ if (!isNil "_switchItem") then {
_unit addSecondaryWeaponItem _switchItem;
};
};
private _switchItemHintText = (__cfgWeapons >> _switchItem >> "MRT_SwitchItemHintText") call BIS_fnc_getCfgData;
if (!isNil "_switchItemHintText") then {
private _switchItemHintText = getText (__cfgWeapons >> _switchItem >> "MRT_SwitchItemHintText");
if !(_switchItemHintText isEqualTo "") then {
hintSilent format ["%1", _switchItemHintText];
};
playSound "click";
Expand Down

0 comments on commit 41174e0

Please sign in to comment.