Improve door pathing update

This commit is contained in:
2022-07-03 12:56:24 +01:00
parent 67b612fe60
commit 757ffad1ad
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -40,6 +40,6 @@ triggerDoorRoom inplid = defaultRoom
-- note no bounds
}
where
f (pmnt:_) = putDoubleDoor (switchWallCol red) (cond pmnt) (V2 0 20) (V2 40 20) 2
f (pmnt:_) = putDoubleDoor DoorObstacle (switchWallCol red) (cond pmnt) (V2 0 20) (V2 40 20) 2
f _ = error "tried to put a door using an empty placement list"
cond pmnt w = w & _triggers w IM.! fromJust (_plMID pmnt)