We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88f7932 commit 9d01732Copy full SHA for 9d01732
1 file changed
external_library/java/hype/hype_swarm.rb
@@ -74,12 +74,13 @@ def draw
74
)
75
@count += 1
76
end
77
- H.draw_stage
78
- begin
79
- it = swarm.goals.iterator
+ H.draw_stage
+ it = swarm.goals.iterator
+ while it.has_next
80
it.remove
81
it.next
82
- end unless swarm.goals.iterator.has_next
+ end
83
+
84
pool.each do |d|
85
swarm.add_goal(d.x, d.y)
86
0 commit comments