mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Fixing a bug with the music fade-in script
Used to crash if these commands were hit during a music fade-in command.
This commit is contained in:
parent
a2caa4d626
commit
ae846e0976
1 changed files with 4 additions and 0 deletions
|
|
@ -363,6 +363,8 @@ class Interpreter
|
|||
#--------------------------------------------------------------------------
|
||||
def command_241
|
||||
# Play BGM
|
||||
$game_temp.target_bgm_vol_level = -1
|
||||
$game_temp.bgm_fadein_speed = 99
|
||||
$game_system.bgm_play(@parameters[0])
|
||||
# Continue
|
||||
return true
|
||||
|
|
@ -372,6 +374,8 @@ class Interpreter
|
|||
#--------------------------------------------------------------------------
|
||||
def command_242
|
||||
# Fade out BGM
|
||||
$game_temp.target_bgm_vol_level = -1
|
||||
$game_temp.bgm_fadein_speed = 99
|
||||
$game_system.bgm_fade(@parameters[0])
|
||||
# Continue
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue