Fixed some bugs related to song intros duration.

This commit is contained in:
CaptainSegis 2018-03-04 15:21:47 -05:00
parent f958ec2e58
commit 664168e6ba
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ Public Class MusicManager
If _fadeIntoIntro Then
_fadeIntoIntro = False
_introEndTime = Date.Now.AddSeconds(-1) + song.Duration
_introEndTime = Date.Now.AddSeconds(0) + song.Duration
_isIntroStarted = True
MediaPlayer.IsRepeating = False
Else
@ -271,7 +271,7 @@ Public Class MusicManager
FadeInto(introSong, fadeSpeed)
Else
_isIntroStarted = True
_introEndTime = Date.Now.AddSeconds(-1) + introSong.Duration
_introEndTime = Date.Now.AddSeconds(0) + introSong.Duration
Play(introSong)
End If

View File

@ -505,7 +505,7 @@
Player.Temp.BeforeBattlePosition = Screen.Camera.Position
Player.Temp.BeforeBattleLevelFile = Screen.Level.LevelFile
Player.Temp.BeforeBattleFacing = Screen.Camera.GetPlayerFacingDirection()
MusicManager.Play(MusicLoop)
MusicManager.Play(MusicLoop, False, 0F)
MediaPlayer.IsRepeating = False
If Not MusicManager.CurrentSong Is Nothing Then

Binary file not shown.