Don't skip starting music

This commit is contained in:
2023-08-16 15:51:40 -06:00
parent 61d9fe5ebc
commit 213fbe846d

View File

@@ -590,7 +590,9 @@
(dictSet songs name song)) (dictSet songs name song))
(hollywooMethod playSong [:Bool skipping name :Continuation cc &opt :Float volumeMod :Bool loop :Bool waitForEnd] (hollywooMethod playSong [:Bool skipping name :Continuation cc &opt :Float volumeMod :Bool loop :Bool waitForEnd]
(when skipping // This actually SHOULDN'T skip because the music might be expected to continue on to the place
// we skip to:
**(when skipping
(cc) (cc)
(return)) (return))
(set volumeMod (or volumeMod 1)) (set volumeMod (or volumeMod 1))
@@ -604,8 +606,7 @@
(playSong skipping name cc volumeMod true false)) (playSong skipping name cc volumeMod true false))
(hollywooMethod stopSong [:Bool skipping cc] (hollywooMethod stopSong [:Bool skipping cc]
(unless skipping (director.stopSong)
(director.stopSong))
(cc)) (cc))
(hollywooMethod newActor [name :Actor actor] (hollywooMethod newActor [name :Actor actor]