From 69ccf3a77de7b11ea1c8c11d96ae14595b204589 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 17 Feb 2020 13:14:36 -0500 Subject: [PATCH] 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. --- src/Xanthous/Game/Draw.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xanthous/Game/Draw.hs b/src/Xanthous/Game/Draw.hs index 8a86101d9..a9b55945f 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