Add faster array compare function

Vanilla commit:

7bbeab4e7d
This commit is contained in:
ebaydayz
2016-08-23 11:17:07 -04:00
parent 8c43b0fc1a
commit d7cc4be585
4 changed files with 17 additions and 2 deletions

View File

@@ -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]), [0,0,0]] call fnc_isEqual) then {
actualSpawnMarkerCount = actualSpawnMarkerCount + 1;
} else {
_i = 11; // exit since we did not find any further markers