Add support for one time sounds, crashes if more than 8 play at once
This commit is contained in:
@@ -33,6 +33,7 @@ update w
|
||||
$ updateCreatures
|
||||
$ updateBlocks -- $ zoning
|
||||
$ updateSeenWalls
|
||||
$ updateSoundQueue
|
||||
w
|
||||
w2 = -- updateWeaponCounters $
|
||||
simpleCrSprings
|
||||
@@ -61,6 +62,8 @@ update w
|
||||
where (x,y) = zoneOfPoint $ _clPos cr
|
||||
cid = _clID cr
|
||||
|
||||
updateSoundQueue = set soundQueue []
|
||||
|
||||
--updateSound :: World -> World
|
||||
--updateSound = set soundQueue [] . stepSoundTimers
|
||||
--stepSoundTimers :: World -> IO World
|
||||
|
||||
Reference in New Issue
Block a user