mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Use distance > 0 instead of BIS_fnc_areEqual
This is faster and actually works.
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]) distance [0,0,0] > 0) then {
|
||||
actualSpawnMarkerCount = actualSpawnMarkerCount + 1;
|
||||
} else {
|
||||
_i = 11; // exit since we did not find any further markers
|
||||
|
||||
Reference in New Issue
Block a user