Navigation Menu

Skip to content

Commit

Permalink
Do not rotate sprite when we are dying
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Mar 11, 2014
1 parent c8d3ca3 commit 7ad7fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/player.cpp
Expand Up @@ -367,7 +367,7 @@ Player::update(float elapsed_time)
}

// handle backflipping
if (backflipping) {
if (backflipping && !dying) {
//prevent player from changing direction when backflipping
dir = (backflip_direction == 1) ? LEFT : RIGHT;
if (backflip_timer.started()) physic.set_velocity_x(100 * backflip_direction);
Expand Down

0 comments on commit 7ad7fe1

Please sign in to comment.