Refactor sounds
This commit is contained in:
@@ -65,7 +65,7 @@ addSoundToDoor i pld hwd (x:ys) = f x : ys
|
||||
where
|
||||
g dm w
|
||||
| dist wp pld > 2 && dist wp hwd > 2
|
||||
= soundFrom (WallSound i) doorSound 1 0 $ dm w
|
||||
= soundFrom (WallSound i) wp doorSound (Just 1) $ dm w
|
||||
| otherwise = dm w
|
||||
where
|
||||
wp = snd $ _wlLine (_walls w IM.! i)
|
||||
|
||||
Reference in New Issue
Block a user