From 993b5675609f47a795d85c36994329d9476635e7 Mon Sep 17 00:00:00 2001 From: Sarah Ohlin Date: Tue, 1 Nov 2022 15:10:38 -0400 Subject: [PATCH] fix: wallkicks on ladders moving up works properly again --- game/world.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/world.cpp b/game/world.cpp index 28bdc7b..4808f95 100644 --- a/game/world.cpp +++ b/game/world.cpp @@ -174,8 +174,11 @@ void world::update(sf::Time dt) { // update moving platforms m_mt_mgr.update(dt); + // check if we're on a moving platform m_update_mp(); + // update "touching" list + m_update_touching(); // shift the player by the amount the platform they're on moved sf::Vector2f mp_offset = m_mp_player_offset(dt); @@ -452,9 +455,6 @@ void world::update(sf::Time dt) { m_xp = intended_x; m_yp = intended_y; - // update "touching" list - m_update_touching(); - // test for being squeezed if (m_player_is_squeezed() || m_player_oob()) { m_player_die();