Mildly delay segfault

This commit is contained in:
Mewrry the Kitty 2025-11-30 15:02:49 -06:00
parent a51ba73710
commit d9bcf32e17

View file

@ -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 << []