Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not resurrect squished bouncing snowball when colliding with badgu…
…y or tile
  • Loading branch information
tobbi committed Nov 4, 2013
1 parent 08bddcf commit 0865a43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/badguy/bouncing_snowball.cpp
Expand Up @@ -50,6 +50,11 @@ BouncingSnowball::collision_squished(GameObject& object)
void
BouncingSnowball::collision_solid(const CollisionHit& hit)
{
if(sprite->get_action() == "squished")
{
return;
}

if(hit.bottom) {
if(get_state() == STATE_ACTIVE) {
physic.set_velocity_y(JUMPSPEED);
Expand Down

0 comments on commit 0865a43

Please sign in to comment.