From cc096b29ccc8516b8158531ccd4d6ce92cbc7f5a Mon Sep 17 00:00:00 2001 From: Eric <52087122+Ramza13@users.noreply.github.com> Date: Mon, 20 May 2024 15:56:28 +0100 Subject: [PATCH] Merge pull request #70957 from Ramza13/fix-peek-vertical Fix issue with peeking vertically --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 25e3c4b1c141d..00b54eeb40c38 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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 }; @@ -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(); } ////////////////////////////////////////////////////////////////////////////////////////////