From 93d152209a658f38c48d70e90ee52450ed9b35d4 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 23 Aug 2016 19:24:41 -0400 Subject: [PATCH] Use distance > 0 instead of BIS_fnc_areEqual This is faster and actually works. --- SQF/dayz_server/system/server_monitor.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_server/system/server_monitor.sqf b/SQF/dayz_server/system/server_monitor.sqf index 1c4385904..4b75449b7 100644 --- a/SQF/dayz_server/system/server_monitor.sqf +++ b/SQF/dayz_server/system/server_monitor.sqf @@ -334,7 +334,7 @@ createCenter civilian; actualSpawnMarkerCount = 0; // count valid spawn markers, since different maps have different amounts for "_i" from 0 to 10 do { - if !([(getMarkerPos format["spawn%1",_i]), [0,0,0]] call BIS_fnc_areEqual) then { + if ((getMarkerPos format["spawn%1",_i]) distance [0,0,0] > 0) then { actualSpawnMarkerCount = actualSpawnMarkerCount + 1; } else { _i = 11; // exit since we did not find any further markers