diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf index 6dcaedcf..30c86bd0 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf @@ -10,7 +10,7 @@ Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike */ -private ["_slot","_pos","_dir","_cargo","_damage","_OldHitPoints","_typeVeh","_baseVeh","_color","_fuel","_newVeh","_checkclass","_cfgEpochVehicles","_availableColorsConfig","_colors","_textureSelectionIndex","_selections","_textures","_count","_newHitpoints","_idx","_dmg"]; +private ["_slot","_pos","_dir","_cargo","_damage","_OldHitPoints","_typeVeh","_baseVeh","_color","_fuel","_newVeh","_checkclass","_cfgEpochVehicles","_availableColorsConfig","_colors","_textureSelectionIndex","_selections","_textures","_count","_newHitpoints","_idx","_dmg","_lock"]; params [["_array",[]],["_player",objnull],["_token","",[""]]]; if (_array isequalto []) exitwith { diag_log "Array is empty"; @@ -42,6 +42,7 @@ _typeVeh = typeOf _veh; _baseVeh = _veh getVariable ["VEHICLE_BASECLASS",_typeVeh]; _color = _veh getVariable ["VEHICLE_TEXTURE",""]; _fuel = fuel _veh; +_lock = locked _veh; deletevehicle _veh; waituntil {isnull _veh}; _pos set [2,(_pos select 2)+0.5]; @@ -52,7 +53,7 @@ _newVeh call EPOCH_server_setVToken; _newVeh call EPOCH_server_vehicleInit; // set fuel level _newVeh setFuel _fuel; - +_newVeh lock _lock; // apply persistent textures _checkclass = _typeVeh; if !(_newVeh iskindof _typeVeh) then { diff --git a/changelog.md b/changelog.md index 168a92df..42861677 100644 --- a/changelog.md +++ b/changelog.md @@ -15,6 +15,7 @@ All changes for [Arma 3](https://arma3.com/) [Epoch Mod](https://epochmod.com) a - Hopefully less login issues on BaseSpawn - Kick by using Jet ejector seats - Wrong calculated Bullets in Traders +- Locked Vehicles were unlocked after upgrade ### Changed - Build mode is now also available while looking onto Building Elements (only in your PlotRange)