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
parent 6dd88e49e1
commit a2327c6280
5 changed files with 17 additions and 5 deletions

View File

@@ -45,6 +45,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
@@ -225,7 +233,7 @@ class Scene_Map
break if $scene != self
end
Graphics.freeze
disposeSpritesets
dispose
if $game_temp.title_screen_calling
Graphics.transition
Graphics.freeze