diff --git a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf index ea909c17..82d220bf 100644 --- a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf +++ b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf @@ -11,30 +11,6 @@ Github: https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server/compile/epoch_looting/EPOCH_server_spawnBoatLoot.sqf -*/ -//[[[cog import generate_private_arrays ]]] -private ["_shipwrecks","_item","_markers"]; -//[[[end]]] -if (getNumber(configFile >> "CfgEpoch" >> worldname >> "shipwreckLootEnabled") isEqualTo 1) then { - _worldSize = worldSize/2; - _shipwrecks = nearestTerrainObjects [ [_worldSize, _worldSize], ["SHIPWRECK"], _worldSize, false ]; - if !(isNil "_shipwrecks") then { - if (count _shipwrecks > 12) then { - _shipwrecks = (_shipwrecks call BIS_fnc_arrayShuffle) resize 12; - }; - { - _item = createVehicle["container_epoch", _x, [], 0, "NONE"]; - _item setMass 220; - if (EPOCH_SHOW_BOATLOOT) then { - _markers = ["Shipwreck",_x] call EPOCH_server_createGlobalMarkerSet; - }; - } foreach _shipwrecks; - }; -}; - - - - */ //[[[cog import generate_private_arrays ]]] private ["_shipwrecks","_item","_markers"]; @@ -46,7 +22,7 @@ if (getNumber(_cfgEpoch >> "shipwreckLootEnabled") isEqualTo 1) then { _total = getNumber(_cfgEpoch >> "maxSpawnedShipwrecks"); for "_i" from 0 to _total-1 do{ _wreck = selectRandom _shipwrecks; - _shipwrecks = _shipwrecks - [_wrecks]; + _shipwrecks = _shipwrecks - [_wreck]; _item = createVehicle["container_epoch", _wreck, [], 0, "NONE"]; _item setMass 220; if (EPOCH_SHOW_BOATLOOT) then {