diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-18 09:24:42 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-18 09:27:38 +0100 |
commit | 4cb74bb382b9159a3a93058a147161710e87089b (patch) | |
tree | 741289623eb5b17c014ccf0a695a909173d0316a | |
parent | 7a1d7018bc0e074c83abc861fb3420e9a8057111 (diff) | |
download | crawl-ref-4cb74bb382b9159a3a93058a147161710e87089b.tar.gz crawl-ref-4cb74bb382b9159a3a93058a147161710e87089b.zip |
Reorder some tiles calls in viewwindow.
tile_draw_floor should be after los update but before
show update.
-rw-r--r-- | crawl-ref/source/view.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index d5802c06a3..df3b1a62d5 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -859,15 +859,20 @@ void viewwindow(bool monster_updates, bool show_updates) #ifdef USE_TILE tiles.clear_text_tags(TAG_NAMED_MONSTER); - tile_draw_floor(); mcache.clear_nonref(); #endif if (show_updates) - { you.update_los(); + +#ifdef USE_TILE + 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(); @@ -875,11 +880,6 @@ void viewwindow(bool monster_updates, bool show_updates) if (show_updates) player_view_update(); -#ifdef USE_TILE - tile_draw_rays(true); - tiles.clear_overlays(); -#endif - bool run_dont_draw = you.running && Options.travel_delay < 0 && (!you.running.is_explore() || Options.explore_delay < 0); |