mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed BGM always restarting when changing maps if the new map's BGM has a night version
This commit is contained in:
@@ -58,11 +58,8 @@ class Scene_Map
|
|||||||
playingBGS = $game_system.playing_bgs
|
playingBGS = $game_system.playing_bgs
|
||||||
return if !playingBGM && !playingBGS
|
return if !playingBGM && !playingBGS
|
||||||
map = load_data(sprintf("Data/Map%03d.rxdata", mapid))
|
map = load_data(sprintf("Data/Map%03d.rxdata", mapid))
|
||||||
if playingBGM && map.autoplay_bgm
|
if playingBGM && map.autoplay_bgm && playingBGM.name != map.bgm_name
|
||||||
if (PBDayNight.isNight? && FileTest.audio_exist?("Audio/BGM/" + map.bgm.name + "_n") &&
|
pbBGMFade(0.8)
|
||||||
playingBGM.name != map.bgm.name + "_n") || playingBGM.name != map.bgm.name
|
|
||||||
pbBGMFade(0.8)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
if playingBGS && map.autoplay_bgs && playingBGS.name != map.bgs.name
|
if playingBGS && map.autoplay_bgs && playingBGS.name != map.bgs.name
|
||||||
pbBGMFade(0.8)
|
pbBGMFade(0.8)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ ShowArea = true
|
|||||||
MapPosition = 0,13,12
|
MapPosition = 0,13,12
|
||||||
BattleBack = field
|
BattleBack = field
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[003] # \PN's house
|
[003] # Player's house
|
||||||
Name = \PN's house
|
Name = \PN's house
|
||||||
HealingSpot = 2,8,8
|
HealingSpot = 2,8,8
|
||||||
MapPosition = 0,13,12
|
MapPosition = 0,13,12
|
||||||
|
|||||||
Reference in New Issue
Block a user