mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-24 21:56:55 +01:00
PRIORITY CRITICAL: Fix infinite loop in carp_migration.dm, line 44
This commit is contained in:
@@ -40,12 +40,10 @@
|
||||
if(spawn_locations.len) // Okay we've got landmarks, lets use those!
|
||||
shuffle_inplace(spawn_locations)
|
||||
num_groups = min(num_groups, spawn_locations.len)
|
||||
var/i = 1
|
||||
while (i <= num_groups)
|
||||
for (var/i = 0, i <= num_groups, i++)
|
||||
var/group_size = rand(group_size_min, group_size_max)
|
||||
for (var/j = 0, j < group_size, j++)
|
||||
spawn_one_carp(spawn_locations[i])
|
||||
i++
|
||||
return
|
||||
|
||||
// Okay we did *not* have any landmarks, so lets do our best!
|
||||
|
||||
Reference in New Issue
Block a user