Allow rewinding after combining items
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ updateRenderSplit u = do
|
||||
|
||||
playSoundUnlessRewinding :: Universe -> IO (M.Map SoundOrigin Sound)
|
||||
playSoundUnlessRewinding u
|
||||
| _rewinding w = return M.empty
|
||||
| _rewinding w == RewindingNow = return M.empty
|
||||
| otherwise = playSoundAndUpdate (_soundData $ _preloadData u) (_playingSounds w) (_toPlaySounds w)
|
||||
where
|
||||
w = _uvWorld u
|
||||
@@ -103,7 +103,7 @@ doSideEffects u = do
|
||||
& uvWorld . playingSounds .~ newPlayingSounds
|
||||
& uvWorld . toPlaySounds .~ M.empty
|
||||
& uvWorld . sideEffects .~ return
|
||||
& uvWorld . rewinding .~ False -- this is probably not the best place for this
|
||||
-- & uvWorld . rewinding .~ False -- this is probably not the best place for this
|
||||
|
||||
|
||||
doPreload :: IO PreloadData
|
||||
|
||||
Reference in New Issue
Block a user