Fixed error in previous commit

This commit is contained in:
Maruno17
2022-10-19 20:01:17 +01:00
parent 64f975072b
commit 2d411cf152

View File

@@ -58,8 +58,10 @@ class Scene_Map
playingBGS = $game_system.playing_bgs
return if !playingBGM && !playingBGS
map = load_data(sprintf("Data/Map%03d.rxdata", mapid))
if playingBGM && map.autoplay_bgm && playingBGM.name != map.bgm_name
pbBGMFade(0.8)
if playingBGM && map.autoplay_bgm
test_filename = map.bgm.name
test_filename += "_n" if PBDayNight.isNight? && FileTest.audio_exist?("Audio/BGM/" + test_filename + "_n")
pbBGMFade(0.8) if playingBGM.name != test_filename
end
if playingBGS && map.autoplay_bgs && playingBGS.name != map.bgs.name
pbBGMFade(0.8)