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:
		
							parent
							
								
									f6eeccbb0f
								
							
						
					
					
						commit
						69ccf3a77d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -95,9 +95,9 @@ drawMap game
 | 
				
			||||||
  = viewport Resource.MapViewport Both
 | 
					  = viewport Resource.MapViewport Both
 | 
				
			||||||
  . cursorPosition game
 | 
					  . cursorPosition game
 | 
				
			||||||
  $ drawEntities
 | 
					  $ drawEntities
 | 
				
			||||||
 | 
					    (`member` characterVisiblePositions game)
 | 
				
			||||||
    (\pos -> (game ^. debugState . allRevealed)
 | 
					    (\pos -> (game ^. debugState . allRevealed)
 | 
				
			||||||
            || (pos `member` (game ^. revealedPositions)))
 | 
					            || (pos `member` (game ^. revealedPositions)))
 | 
				
			||||||
    (`member` characterVisiblePositions game)
 | 
					 | 
				
			||||||
    -- FIXME: this will break down as soon as creatures can walk around on their
 | 
					    -- 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
 | 
					    -- own, since we don't want to render things walking around when the
 | 
				
			||||||
    -- character can't see them
 | 
					    -- character can't see them
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue