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

@@ -44,6 +44,14 @@ class Scene_Map
@spritesets = {}
end
def dispose
disposeSpritesets
@map_renderer.dispose
@map_renderer = nil
@spritesetGlobal.dispose
@spritesetGlobal = nil
end
def autofade(mapid)
playingBGM = $game_system.playing_bgm
playingBGS = $game_system.playing_bgs
@@ -252,7 +260,7 @@ class Scene_Map
break if $scene != self
end
Graphics.freeze
disposeSpritesets
dispose
if $game_temp.to_title
Graphics.transition(20)
Graphics.freeze