From 41d4d89729797712087631b6a22fa82dee77f2de Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 4 Dec 2009 16:14:27 +0100 Subject: Only reset env.tile_* when updating env.show. This should fix items and monsters sometimes not being drawn. --- crawl-ref/source/view.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 8862e4ee34..bbf4f42dac 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -890,16 +890,17 @@ void viewwindow(bool monster_updates, bool show_updates) #endif if (show_updates) + { you.update_los(); #ifdef USE_TILE - tile_draw_floor(); - tile_draw_rays(true); - tiles.clear_overlays(); + tile_draw_floor(); + tile_draw_rays(true); + tiles.clear_overlays(); #endif - if (show_updates) env.show.init(); + } if (monster_updates && !crawl_state.arena) monster_grid_updates(); -- cgit v1.2.3-54-g00ecf