mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
added fallback for icons without .paa post-fix
This commit is contained in:
parent
008606f636
commit
dfde14bafc
@ -34,9 +34,13 @@ if (isNil "_cachedValue") then {
|
|||||||
if (_vehicleIconValue == "") then {
|
if (_vehicleIconValue == "") then {
|
||||||
if (_vehicleValue != "" && {((toLowerANSI _vehicleValue) find ".paa") > -1}) then {
|
if (_vehicleValue != "" && {((toLowerANSI _vehicleValue) find ".paa") > -1}) then {
|
||||||
_cachedValue = _vehicleValue;
|
_cachedValue = _vehicleValue;
|
||||||
|
} else {
|
||||||
|
if (fileExists (_vehicleValue + ".paa")) then {
|
||||||
|
_cachedValue = _vehicleValue + ".paa";
|
||||||
} else {
|
} else {
|
||||||
_cachedValue = DEFAULT_TEXTURE;
|
_cachedValue = DEFAULT_TEXTURE;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
_cachedValue = _vehicleIconValue;
|
_cachedValue = _vehicleIconValue;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user