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
|
def update
|
||||||
hbgdb = $hex_bgs.debug_get_stats
|
hbgdb = $hex_bgs.debug_get_stats
|
||||||
puts "ids: #{hbgdb['i']}"
|
# puts "ids: #{hbgdb['i']}"
|
||||||
puts "ref: #{hbgdb['r']}"
|
# puts "ref: #{hbgdb['r']}"
|
||||||
puts "bgs: #{hbgdb['b']}"
|
# puts "bgs: #{hbgdb['b']}"
|
||||||
|
|
||||||
if @output_buffer.length > 0
|
if @output_buffer.length > 0
|
||||||
render_output
|
render_output
|
||||||
|
|
@ -408,8 +408,9 @@ class HexagonTerminalWindow < Gosu::Window
|
||||||
hex.y -= $hex_y_offset
|
hex.y -= $hex_y_offset
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for hex in @hexes[0]
|
@hexes[0].each.with_index do |hex, i|
|
||||||
hex.cleanup!
|
hex.cleanup!
|
||||||
|
@hexes[0][i] = nil
|
||||||
end
|
end
|
||||||
@hexes = @hexes[1..-1]
|
@hexes = @hexes[1..-1]
|
||||||
@hexes << []
|
@hexes << []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue