Skip to content

Commit

Permalink
Do not change direction of bouncing snowballs due to unisolid tile
Browse files Browse the repository at this point in the history
  • Loading branch information
Brockengespenst committed Jul 2, 2024
1 parent 4538d8f commit 7ecee6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/badguy/bouncing_snowball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ecee6b

Please sign in to comment.