Skip to content

Commit

Permalink
fix: wallkicks on ladders moving up works properly again
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkittyy committed Nov 1, 2022
1 parent 3397f47 commit 993b567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions game/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 993b567

Please sign in to comment.