mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-08-12 18:43:18 +03:00
Add faster array compare function
Vanilla commit: https://github.com/DayZMod/DayZ/commit/7bbeab4e7db4d340cdd34b6c288bafc0833b1a8e
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user