Fix laser targeting draw when creature offscreen
This commit is contained in:
@@ -16,7 +16,7 @@ getLinksOfType :: RoomLinkType -> [RoomLink] -> [RoomLink]
|
||||
getLinksOfType lt = filter (S.member lt . _rlType)
|
||||
|
||||
restrictInLinks :: ((Point2,Float) -> Bool) -> Room -> Room
|
||||
restrictInLinks f = rmLinks %~ restrictLinkType InLink f
|
||||
restrictInLinks = over rmLinks . restrictLinkType InLink
|
||||
|
||||
restrictOutLinks :: ((Point2,Float) -> Bool) -> Room -> Room
|
||||
restrictOutLinks f = rmLinks %~ restrictLinkType OutLink f
|
||||
|
||||
Reference in New Issue
Block a user