diff options
author | Griffin Smith <root@gws.fyi> | 2020-02-17T18·14-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-02-17T18·14-0500 |
commit | 69ccf3a77de7b11ea1c8c11d96ae14595b204589 (patch) | |
tree | 4f7c1bf6f6d2dc41227e08da0e537804c7997d61 /src/Xanthous/Game/Draw.hs | |
parent | f6eeccbb0fd833b5d6d710e87e9c41d432341b9a (diff) |
Fix argument order to drawEntities
I had swapped the order of isVisible and isRevealed, which was causing not-currently-visible gormlaks to still be rendered.
Diffstat (limited to 'src/Xanthous/Game/Draw.hs')
-rw-r--r-- | src/Xanthous/Game/Draw.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xanthous/Game/Draw.hs b/src/Xanthous/Game/Draw.hs index 8a86101d9915..a9b55945ffa6 100644 --- a/src/Xanthous/Game/Draw.hs +++ b/src/Xanthous/Game/Draw.hs @@ -95,9 +95,9 @@ drawMap game = viewport Resource.MapViewport Both . cursorPosition game $ drawEntities + (`member` characterVisiblePositions game) (\pos -> (game ^. debugState . allRevealed) || (pos `member` (game ^. revealedPositions))) - (`member` characterVisiblePositions game) -- FIXME: this will break down as soon as creatures can walk around on their -- own, since we don't want to render things walking around when the -- character can't see them |