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

@@ -35,6 +35,14 @@ class PokemonTilesetScene
pbDisposeSpriteHash(@sprites)
@viewport.dispose
@tilehelper.dispose
if $game_map && $map_factory
$map_factory.setup($game_map.map_id)
$game_player.center($game_player.x, $game_player.y)
if $scene.is_a?(Scene_Map)
$scene.dispose
$scene.createSpritesets
end
end
end
def load_tileset(id)