Sync debug check

Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/0baaac7a91a4eaf02c13e47ae51e2015af5549c2
This commit is contained in:
ebaydayz
2016-07-23 15:23:00 -04:00
parent cc2aae59eb
commit 8202f7d61b
@@ -25,15 +25,12 @@ if (_characterID == "0") exitWith {
_Achievements = [];
/*
//No longer used
private["_debug","_distance"];
_debug = getMarkerpos "respawn_west";
_distance = _debug distance _charPos;
if (_distance < 2000) exitWith {
// diag_log format["ERROR: server_playerSync: Cannot Sync Player %1 [%2]. Position in debug! %3",name _character,_characterID,_charPos];
};
*/
private["_debug","_distance"];
_debug = getMarkerpos "respawn_west";
_distance = _debug distance _charPos;
if (_distance < 1500) exitWith {
diag_log format["ERROR: server_playerSync: Cannot Sync Player %1 [%2]. Position in debug! %3",_name,_characterID,_charPos];
};
//Check for server initiated updates
_isNewMed = _character getVariable ["medForceUpdate",false]; //Med update is forced when a player receives some kind of med incident