mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed battle BGM fading in/being offset
This commit is contained in:
@@ -42,7 +42,10 @@ class Game_System
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def bgm_play(bgm)
|
def bgm_play(bgm)
|
||||||
|
old_pos = @bgm_position
|
||||||
|
@bgm_position = 0
|
||||||
bgm_play_internal(bgm,0)
|
bgm_play_internal(bgm,0)
|
||||||
|
@bgm_position = old_pos
|
||||||
end
|
end
|
||||||
|
|
||||||
def bgm_play_internal2(name,volume,pitch,position) # :nodoc:
|
def bgm_play_internal2(name,volume,pitch,position) # :nodoc:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
|
|||||||
pbWait(Graphics.frame_rate/4)
|
pbWait(Graphics.frame_rate/4)
|
||||||
pbMEStop
|
pbMEStop
|
||||||
# Play battle music
|
# Play battle music
|
||||||
bgm = pbGetWildBattleBGM([0]) if !bgm
|
bgm = pbGetWildBattleBGM([]) if !bgm
|
||||||
pbBGMPlay(bgm)
|
pbBGMPlay(bgm)
|
||||||
# Take screenshot of game, for use in some animations
|
# Take screenshot of game, for use in some animations
|
||||||
$game_temp.background_bitmap.dispose if $game_temp.background_bitmap
|
$game_temp.background_bitmap.dispose if $game_temp.background_bitmap
|
||||||
|
|||||||
Reference in New Issue
Block a user