Mildly delay segfault
This commit is contained in:
parent
a51ba73710
commit
d9bcf32e17
1 changed files with 5 additions and 4 deletions
9
main.rb
9
main.rb
|
|
@ -313,9 +313,9 @@ class HexagonTerminalWindow < Gosu::Window
|
|||
|
||||
def update
|
||||
hbgdb = $hex_bgs.debug_get_stats
|
||||
puts "ids: #{hbgdb['i']}"
|
||||
puts "ref: #{hbgdb['r']}"
|
||||
puts "bgs: #{hbgdb['b']}"
|
||||
# puts "ids: #{hbgdb['i']}"
|
||||
# puts "ref: #{hbgdb['r']}"
|
||||
# puts "bgs: #{hbgdb['b']}"
|
||||
|
||||
if @output_buffer.length > 0
|
||||
render_output
|
||||
|
|
@ -408,8 +408,9 @@ class HexagonTerminalWindow < Gosu::Window
|
|||
hex.y -= $hex_y_offset
|
||||
end
|
||||
end
|
||||
for hex in @hexes[0]
|
||||
@hexes[0].each.with_index do |hex, i|
|
||||
hex.cleanup!
|
||||
@hexes[0][i] = nil
|
||||
end
|
||||
@hexes = @hexes[1..-1]
|
||||
@hexes << []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue