From bee96dcc4fb6db4831840d00fedcb9813bd9a565 Mon Sep 17 00:00:00 2001 From: Brockengespenst Date: Mon, 6 May 2024 23:52:36 +0200 Subject: [PATCH] Do not change direction of bouncing snowballs due to unisolid tile --- src/badguy/bouncing_snowball.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/badguy/bouncing_snowball.cpp b/src/badguy/bouncing_snowball.cpp index 125a8d3d93e..bc4ea58c283 100644 --- a/src/badguy/bouncing_snowball.cpp +++ b/src/badguy/bouncing_snowball.cpp @@ -66,7 +66,7 @@ BouncingSnowball::active_update(float dt_sec) Rectf side_look_box = get_bbox().grown(-1.f); side_look_box.set_left(get_bbox().get_left() + (m_dir == Direction::LEFT ? -1.f : 1.f)); side_look_box.set_right(get_bbox().get_right() + (m_dir == Direction::LEFT ? -1.f : 1.f)); - if (!Sector::get().is_free_of_statics(side_look_box)) + if (!Sector::get().is_free_of_statics(side_look_box, nullptr, true)) { m_dir = m_dir == Direction::LEFT ? Direction::RIGHT : Direction::LEFT; set_action(m_dir);