Skip to content

Commit

Permalink
Unstable tile now refuses to respawn when tux is occupying original p…
Browse files Browse the repository at this point in the history
…osition (#2530)

Apparently #1998 might've tried to fix this?
  • Loading branch information
MatusGuy authored Jul 13, 2023
1 parent 517c293 commit 23131b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/unstable_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ UnstableTile::update(float dt_sec)
{
if (m_revive_timer.check())
{
if (Sector::current() && Sector::get().is_free_of_movingstatics(m_col.m_bbox.grown(-1.f)))
if (Sector::get().is_free_of_movingstatics(Rectf(m_original_pos, get_bbox().get_size()).grown(-1.f)))
{
revive();
}
Expand Down

0 comments on commit 23131b0

Please sign in to comment.