Continue tweaking sound
This commit is contained in:
@@ -91,9 +91,9 @@ awakeLevelPerception cr = case _crAwakeLevel $ _crPerception cr of
|
||||
newSounds :: World -> [(Point2,Float)]
|
||||
newSounds = mapMaybe f . M.elems . _playingSounds
|
||||
where
|
||||
f s | _soundStatus s == JustStartedPlaying
|
||||
= Just (_soundPos s, _soundVolume s)
|
||||
| otherwise = Nothing
|
||||
f s = case _soundStatus s of
|
||||
JustStartedPlaying -> Just (_soundPos s, _soundVolume s)
|
||||
_ -> Nothing
|
||||
|
||||
rememberSounds :: Creature -> Reader World Creature
|
||||
rememberSounds cr = do
|
||||
|
||||
Reference in New Issue
Block a user