Skip to content

Commit

Permalink
Remove some unecessary cache invalidations
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed Jun 11, 2019
1 parent 70d51a1 commit 25f79b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,6 @@ bool game::do_turn()
sounds::process_sounds();
// Update vision caches for monsters. If this turns out to be expensive,
// consider a stripped down cache just for monsters.
m.invalidate_map_cache( get_levz() );
m.build_map_cache( get_levz(), true );
monmove();
if( calendar::once_every( 3_minutes ) ) {
Expand Down Expand Up @@ -3148,7 +3147,6 @@ void game::draw()

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

Expand Down
1 change: 0 additions & 1 deletion src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,6 @@ bool game::handle_action()
add_msg( m_info, _( "You can't disassemble items while you're riding." ) );
} else {
u.disassemble();
g->m.invalidate_map_cache( g->get_levz() );
refresh_all();
}
break;
Expand Down

0 comments on commit 25f79b6

Please sign in to comment.