Skip to content

Commit

Permalink
Add a cache refresh before drawing pixel minimap, draw_ter reordering
Browse files Browse the repository at this point in the history
removed an implicit refresh.
  • Loading branch information
DanmakuDan committed Mar 23, 2016
1 parent cb1881d commit 976ec58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5056,6 +5056,13 @@ void game::draw()
{
// Draw map
werase(w_terrain);

//temporary fix for updating visibility for minimap
ter_view_z = ( u.pos() + u.view_offset ).z;
m.build_map_cache( ter_view_z );
visibility_variables cache;
m.update_visibility_cache( cache, ter_view_z );

draw_sidebar();
draw_ter();
if( !is_draw_tiles_mode() ) {
Expand Down

0 comments on commit 976ec58

Please sign in to comment.