Use distance > 0 instead of BIS_fnc_areEqual

This is faster and actually works.
This commit is contained in:
ebaydayz
2016-08-23 19:24:41 -04:00
parent 8af3d001ba
commit 93d152209a

View File

@@ -334,7 +334,7 @@ createCenter civilian;
actualSpawnMarkerCount = 0; actualSpawnMarkerCount = 0;
// count valid spawn markers, since different maps have different amounts // count valid spawn markers, since different maps have different amounts
for "_i" from 0 to 10 do { 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; actualSpawnMarkerCount = actualSpawnMarkerCount + 1;
} else { } else {
_i = 11; // exit since we did not find any further markers _i = 11; // exit since we did not find any further markers