Skip to content

Commit

Permalink
move setting of animation loops outside of switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Narre committed Aug 19, 2023
1 parent 6daf710 commit 2103c97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/badguy/crusher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,24 +702,21 @@ CrusherRoot::start_animation()
{
case Crusher::Direction::DOWN:
set_action("downwards");
m_sprite->set_animation_loops(1);
break;

case Crusher::Direction::UP:
set_action("upwards");
m_sprite->set_animation_loops(1);
break;

case Crusher::Direction::LEFT:
set_action("sideways-left");
m_sprite->set_animation_loops(1);
break;

case Crusher::Direction::RIGHT:
set_action("sideways-right");
m_sprite->set_animation_loops(1);
break;
}
m_sprite->set_animation_loops(1);
}

/* EOF */

0 comments on commit 2103c97

Please sign in to comment.