Skip to content

Commit 2a8e036

Browse files
committed
replace set_sprite_action() by set_action()
1 parent eb96554 commit 2a8e036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/badguy/darttrap.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ DartTrap::on_flip(float height)
160160
if (m_dir == Direction::UP)
161161
{
162162
m_dir = Direction::DOWN;
163-
set_sprite_action(m_state == IDLE ? "idle-down" : "loading-down");
163+
set_action(m_state == IDLE ? "idle" : "loading", m_dir, 1);
164164
}
165165
else if (m_dir == Direction::DOWN)
166166
{
167167
m_dir = Direction::UP;
168-
set_sprite_action(m_state == IDLE ? "idle-up" : "loading-up");
168+
set_action(m_state == IDLE ? "idle" : "loading", m_dir, 1);
169169
}
170170
else
171171
FlipLevelTransformer::transform_flip(m_flip);

0 commit comments

Comments
 (0)