mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
config number -1 for true number of locations
This commit is contained in:
parent
ba339d518b
commit
b113bd5209
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user