Skip to content

Commit

Permalink
replace set_sprite_action() by set_action()
Browse files Browse the repository at this point in the history
  • Loading branch information
Narre committed Aug 2, 2023
1 parent eb96554 commit 2a8e036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/badguy/darttrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ DartTrap::on_flip(float height)
if (m_dir == Direction::UP)
{
m_dir = Direction::DOWN;
set_sprite_action(m_state == IDLE ? "idle-down" : "loading-down");
set_action(m_state == IDLE ? "idle" : "loading", m_dir, 1);
}
else if (m_dir == Direction::DOWN)
{
m_dir = Direction::UP;
set_sprite_action(m_state == IDLE ? "idle-up" : "loading-up");
set_action(m_state == IDLE ? "idle" : "loading", m_dir, 1);
}
else
FlipLevelTransformer::transform_flip(m_flip);
Expand Down

0 comments on commit 2a8e036

Please sign in to comment.