fix issue with map renderer after battles ( commit 2c65a9de7d )

This commit is contained in:
infinitefusion
2022-06-03 15:38:38 -04:00
parent cc200ac0ed
commit 6ecdd9575f
10 changed files with 503 additions and 509 deletions

View File

@@ -2,18 +2,12 @@
# Battle intro animation
#===============================================================================
def pbSceneStandby
$scene.disposeSpritesets if $scene && $scene.is_a?(Scene_Map)
if RPG::Cache.need_clearing
RPG::Cache.clear
end
Graphics.frame_reset
yield
$scene.createSpritesets if $scene && $scene.is_a?(Scene_Map)
end
def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
$game_temp.in_battle = true
viewport = Viewport.new(0,0,Graphics.width,Graphics.height)
viewport = Viewport.new(0,0,Graphicsc.width,Graphics.height)
viewport.z = 99999
# Set up audio
playingBGS = nil