mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
Fix Jukeboxes for estates parties and no conflict with TV
loop needs int not float and time is float and loop was set to getMusicRepeatTimes(length) this is time not loop
This commit is contained in:
parent
88dca5c838
commit
359e52ed11
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,8 @@ class DistributedPartyJukeboxActivityBase(DistributedPartyActivity):
|
|||
if self.music:
|
||||
if self.__checkPartyValidity() and hasattr(base.cr.playGame.getPlace().loader, 'music') and base.cr.playGame.getPlace().loader.music:
|
||||
base.cr.playGame.getPlace().loader.music.stop()
|
||||
self.music.setTime(0.0)
|
||||
self.music.setLoopCount(getMusicRepeatTimes(length))
|
||||
self.music.setTime(getMusicRepeatTimes(length))
|
||||
self.music.setLoopCount(0)
|
||||
self.music.play()
|
||||
self.currentSongData = (phase, filename)
|
||||
|
||||
|
|
Loading…
Reference in a new issue