From be777dd42a32d86dfcc6860b15d7a80380fa8b08 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Sun, 29 Jul 2018 13:54:57 -0400 Subject: [PATCH] Fix distanceFoot database stat Vanilla commit: https://github.com/DayZMod/DayZ/commit/741df600855f5f1c6c625aae6222d4539901dbe1 --- CHANGE LOG 1.0.6.3.txt | 3 ++- SQF/dayz_code/system/player_spawn_2.sqf | 3 --- SQF/dayz_server/compile/server_playerSetup.sqf | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGE LOG 1.0.6.3.txt b/CHANGE LOG 1.0.6.3.txt index 6f1d5ac62..65aab47ee 100644 --- a/CHANGE LOG 1.0.6.3.txt +++ b/CHANGE LOG 1.0.6.3.txt @@ -9,7 +9,8 @@ [FIXED] Rare publicVariable value restrictions for AuthKey due to RNG with basic Latin characters (d48c907) @oiad @AirwavesMan [FIXED] Freeze when iterating through CfgWeapons in A2OA 1.64 due to conflict with ItemKeys in dayz_epoch_b.pbo #2010 @S-fly [FIXED] 45Rnd_545x39_RPK error after it was removed with the 2018-04-05 A2OA CorePatch (d249227) -[FIXED] Disabled Arma's automatic vehicle refuel, repair and rearm at WarfareBVehicleServicePoint buildings. @dihan48 +[FIXED] Disabled Arma's automatic vehicle refuel, repair and rearm at WarfareBVehicleServicePoint buildings (2c4f06c) @dihan48 +[FIXED] DistanceFoot database stat was incorrect. @dihan48 [UPDATED] Spawning of Zombies and Loot in Safe Zones can now be toggled, disabled by default, see configVariables.sqf/DZE_SafeZoneZombieLoot (6248add, 141b25e) @oiad @_Lance_ [UPDATED] Added notification when status icons are disabled diff --git a/SQF/dayz_code/system/player_spawn_2.sqf b/SQF/dayz_code/system/player_spawn_2.sqf index f6631b885..2286b218e 100644 --- a/SQF/dayz_code/system/player_spawn_2.sqf +++ b/SQF/dayz_code/system/player_spawn_2.sqf @@ -58,9 +58,6 @@ while {1 == 1} do { _mylastPos = _tempPos; }; - if (!isNil "_mylastPos") then { - dayz_mylastPos = _mylastPos; - }; dayz_areaAffect = _size; if (_speed > 0.1) then { diff --git a/SQF/dayz_server/compile/server_playerSetup.sqf b/SQF/dayz_server/compile/server_playerSetup.sqf index cea9a494a..c2b1e0a4e 100644 --- a/SQF/dayz_server/compile/server_playerSetup.sqf +++ b/SQF/dayz_server/compile/server_playerSetup.sqf @@ -166,7 +166,6 @@ if (count _stats > 0) then { }; if (_randomSpot) then { - private ["_counter","_position","_isNear","_isZero","_mkr"]; if (!isDedicated) then {endLoadingScreen;}; _IslandMap = (toLower worldName in ["caribou","cmr_ovaron","dayznogova","dingor","dzhg","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","ruegen","sara","sauerland","smd_sahrani_a2","tasmania2010","tavi","trinity","utes"]); @@ -213,7 +212,7 @@ if (_randomSpot) then { //record player pos locally for server checking _playerObj setVariable ["characterID",_characterID,true]; _playerObj setVariable ["humanity",_humanity,true]; -_playerObj setVariable ["lastPos",getPosATL _playerObj]; +_playerObj setVariable ["lastPos",_position]; _clientID = owner _playerObj; _randomKey = [];