From 23131b0e288760b8f858b51921add20ef24e993a Mon Sep 17 00:00:00 2001 From: MatusGuy <85036874+MatusGuy@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:00:36 +0100 Subject: [PATCH] Unstable tile now refuses to respawn when tux is occupying original position (#2530) Apparently #1998 might've tried to fix this? --- src/object/unstable_tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/unstable_tile.cpp b/src/object/unstable_tile.cpp index 1dbc157d100..08fcaae4963 100644 --- a/src/object/unstable_tile.cpp +++ b/src/object/unstable_tile.cpp @@ -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(); }