Fixed playing the credits/changing $scene leaving a ghost image of the old map behind, fixed Pokémon icons sometimes disappearing in storage screen

This commit is contained in:
Maruno17
2022-07-03 16:40:25 +01:00
committed by infinitefusion
parent 799c1e27a6
commit 7d425b0e05
5 changed files with 28 additions and 9 deletions

View File

@@ -280,10 +280,14 @@ class TilemapRenderer
@tiles.each do |col|
col.each do |coord|
coord.each { |tile| tile.dispose }
coord.clear
end
end
@tiles.clear
@tilesets.bitmaps.each_value { |bitmap| bitmap.dispose }
@tilesets.bitmaps.clear
@autotiles.bitmaps.each_value { |bitmap| bitmap.dispose }
@autotiles.bitmaps.clear
@self_viewport.dispose
@self_viewport = nil
@disposed = true