fix bug causing roulette to sometimes choose items in same zone

This commit is contained in:
Emi Matchu 2011-01-27 16:52:43 -05:00
parent 4b66a560e7
commit d2e8e9e009

View file

@ -40,7 +40,7 @@ class Roulette
checked_zone_id = zone.id checked_zone_id = zone.id
next if checked_zone_id == zone_id next if checked_zone_id == zone_id
if i = unoccupied_zone_ids.find_index(zone_id) if i = unoccupied_zone_ids.find_index(zone_id)
unoccupied_zone_ids.slice! zone_id unoccupied_zone_ids.delete zone_id
else else
# This zone is already occupied, so this item is no good. # This zone is already occupied, so this item is no good.
pass = false pass = false