Repair - Fix claimed object abuse (#8460)

This commit is contained in:
GhostIsSpooky 2021-10-10 13:50:10 -03:00 committed by GitHub
parent 1b318433a2
commit 9479c29b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,8 +135,12 @@ if (_consumeItems > 0) then {
private _callbackProgress = getText (_config >> "callbackProgress");
if (_callbackProgress == "") then {
_callbackProgress = {
(_this select 0) params ["", "_target"];
(alive _target) && {(abs speed _target) < 1} // make sure vehicle doesn't drive off
(_this select 0) params ["_caller", "_target", "", "", "", "", "_claimObjectsAvailable"];
(
(alive _target) &&
{(abs speed _target) < 1} && // make sure vehicle doesn't drive off
{_claimObjectsAvailable findIf {!alive _x || {_x getVariable [QEGVAR(common,owner), objNull] isNotEqualTo _caller}} == -1} // make sure claim objects are still available
)
};
} else {
if (isNil _callbackProgress) then {