From 60d9bb3883c019b3e85cca6be2fa591e1f587fbd Mon Sep 17 00:00:00 2001 From: tbox1911 Date: Tue, 21 May 2024 11:29:52 +0200 Subject: [PATCH] fix perm unload from public --- core.liberation/scripts/server/game/attach_object_direct.sqf | 2 +- .../scripts/server/remotecall/unload_truck_remote_call.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core.liberation/scripts/server/game/attach_object_direct.sqf b/core.liberation/scripts/server/game/attach_object_direct.sqf index ef6b8b375..86dfe6a5a 100644 --- a/core.liberation/scripts/server/game/attach_object_direct.sqf +++ b/core.liberation/scripts/server/game/attach_object_direct.sqf @@ -37,7 +37,7 @@ if ( count _truck_load < _maxload ) then { }; // Owner - if (!(_object_class in GRLIB_vehicle_blacklist)) then { + if (!(_object_class in GRLIB_vehicle_blacklist) && !(_truck_owner in ["", "public", "server"])) then { _object setVariable ["GRLIB_vehicle_owner", _truck_owner, true]; }; diff --git a/core.liberation/scripts/server/remotecall/unload_truck_remote_call.sqf b/core.liberation/scripts/server/remotecall/unload_truck_remote_call.sqf index dd06283d6..b2ced0494 100644 --- a/core.liberation/scripts/server/remotecall/unload_truck_remote_call.sqf +++ b/core.liberation/scripts/server/remotecall/unload_truck_remote_call.sqf @@ -17,7 +17,7 @@ private _all_objects = _truck getVariable ["GRLIB_ammo_truck_load", []]; { _x allowDamage false } foreach _all_objects; sleep 1; -private [ "_next_box", "_next_pos" ]; +private ["_next_box", "_next_pos"]; { _next_box = _x; if (!isNull _next_box) then {