Various - Use configOf command for faster lookup (#8100)

* configOf

* replace some use of CBA_fnc_getObjectConfig
This commit is contained in:
PabstMirror
2021-02-18 12:58:08 -06:00
committed by GitHub
parent f72175f823
commit e8693c8db9
134 changed files with 172 additions and 173 deletions

View File

@ -32,7 +32,7 @@ private _unitTypePicture = "";
private _vehicleTypePicture = "";
private _vehiclePositionPicture = "";
if (_focus != vehicle _focus) then {
_vehicleTypePicture = getText (configFile >> "CfgVehicles" >> typeOf vehicle _focus >> "Picture");
_vehicleTypePicture = getText (configOf vehicle _focus >> "Picture");
_vehiclePositionPicture = switch (_focus) do {
case (commander vehicle _focus): {IMG_COMMANDER};