config number -1 for true number of locations

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-10-22 17:07:44 -05:00
parent ba339d518b
commit b113bd5209

View File

@ -264,7 +264,7 @@ if !(_radioactiveLocations isEqualTo []) then {
private _locations = nearestLocations[epoch_centerMarkerPosition, _radioactiveLocations, EPOCH_dynamicVehicleArea]; private _locations = nearestLocations[epoch_centerMarkerPosition, _radioactiveLocations, EPOCH_dynamicVehicleArea];
if !(_locations isEqualTo []) then { if !(_locations isEqualTo []) then {
for "_i" from 0 to (getNumber(_epochConfig >> worldName >> "radioactiveLocationsCount")) do for "_i" from 0 to ((getNumber(_epochConfig >> worldName >> "radioactiveLocationsCount"))-1) do
{ {
if (_locations isEqualTo []) exitWith {}; if (_locations isEqualTo []) exitWith {};
private _selectedLoc = selectRandom _locations; private _selectedLoc = selectRandom _locations;