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.
This commit is contained in:
Griffin Smith 2020-02-17 13:14:36 -05:00
parent f6eeccbb0f
commit 69ccf3a77d

View file

@ -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