diff --git a/main.rb b/main.rb index f4d1398..26c3c49 100644 --- a/main.rb +++ b/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 << []