Commit before making all walls zoned

This commit is contained in:
2021-09-30 13:36:07 +01:00
parent d7f975d40e
commit eb393708c4
7 changed files with 34 additions and 25 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ addButtonDoor c btp btr a b speed w
$ set pathPoints (foldr insertPoint IM.empty (labNodes newGraph))
$ set pathGraph newGraph
$ set pathGraphP newGraphPairs
$ (snd $ putSingleDoor False c cond a b speed w)
$ snd (putSingleDoor False c cond a b speed w)
where
bid = IM.newKey $ _buttons w
cond w' = BtNoLabel == _btState (_buttons w' IM.! bid)
@@ -90,7 +90,7 @@ doorMechanismStepwise nsteps drid wlids pss dr w
playSound = soundContinue (WallSound drid) (fst $ head pss) slideDoorS (Just 1)
toOpen = _drTrigger dr w
cpss = uncurry (rectanglePairs 9) (head pss)
setWalls n = (playSound $ foldl' setWall w (zip3 wlids newps cpss))
setWalls n = playSound (foldl' setWall w (zip3 wlids newps cpss))
& doors . ix drid . drStatus .~ DoorInt n
where
newps = uncurry (rectanglePairs 9) (pss !! n)