From 6820969989853d7ac3ca0a2f6947278e0a32441c Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 7 Jul 2017 20:43:11 +0200 Subject: [PATCH] Fix for SetSpawnPoint above Water not working --- .../compile/epoch_player/EPOCH_server_loadPlayer.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf b/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf index a907f611..50f99c35 100644 --- a/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf +++ b/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf @@ -117,7 +117,11 @@ if (!isNull _player) then { _location = getMarkerPos "respawn_west"; _location set[2, 0]; if (_newLocation isEqualType [] && {(count _newLocation) == 3}) then { - _jammers = nearestObjects[_newLocation, ["PlotPole_EPOCH"], 6]; + _CheckLocation = _newLocation; + if (surfaceiswater _newLocation) then { + _CheckLocation = ATLToASL _newLocation; + }; + _jammers = nearestObjects[_CheckLocation, ["PlotPole_EPOCH"], 6]; if !(_jammers isEqualTo[]) then { // get nearby object _jammer = _jammers param [0,objNull];