mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Logistics Wirecutter - Check if fence model is in FENCE_P3DS
even if config check fails. (#9201)
* Check if fence model is in FENCE_P3DS even if config check fails. * Fix early return condition * Simplify condition
This commit is contained in:
parent
117c3092f8
commit
78c1ce3ae9
@ -19,11 +19,4 @@
|
||||
params ["_object"];
|
||||
TRACE_1("Checking if fence",_object);
|
||||
|
||||
private _configOf = configOf _object;
|
||||
if !(isNull _configOf) then {
|
||||
// Check for isFence entry since we have valid configOf
|
||||
getNumber (_configOf >> QGVAR(isFence)) == 1 // return
|
||||
} else {
|
||||
// Check the p3d name against list (in script_component.hpp)
|
||||
(getModelInfo _object select 0) in FENCE_P3DS // return
|
||||
};
|
||||
getNumber (configOf _object >> QGVAR(isFence)) == 1 || {(getModelInfo _object select 0) in FENCE_P3DS}
|
||||
|
Loading…
Reference in New Issue
Block a user