Skip to content

Commit

Permalink
Merge pull request #70957 from Ramza13/fix-peek-vertical
Browse files Browse the repository at this point in the history
Fix issue with peeking vertically
  • Loading branch information
Ramza13 authored and Procyonae committed May 20, 2024
1 parent e8f7249 commit cc096b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6288,6 +6288,7 @@ void game::peek( const tripoint &p )
const bool is_standup_peek = is_same_pos && u.is_crouching();
tripoint center = p;
m.build_map_cache( p.z );
m.update_visibility_cache( p.z );

look_around_result result;
const look_around_params looka_params = { true, center, center, false, false, true, true };
Expand All @@ -6305,6 +6306,7 @@ void game::peek( const tripoint &p )
avatar_action::plthrow( u, loc, p );
}
m.invalidate_map_cache( p.z );
m.invalidate_visibility_cache();
}

////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit cc096b2

Please sign in to comment.