From: Ricardo Cruz Date: Sat, 21 Feb 2004 16:25:48 +0000 (+0000) Subject: Corrected collition with bag of money X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f3f432fa13f9d364c1d1e799ce428afa68a2193b;p=supertux.git Corrected collition with bag of money SVN-Revision: 143 --- diff --git a/src/collision.c b/src/collision.c index de8a536d5..98892bccb 100644 --- a/src/collision.c +++ b/src/collision.c @@ -99,7 +99,7 @@ void collision_handler() if(bad_guys[i].dying == NO && rectcollision_offset(&bad_guys[i].base,&tux.base,0,0) == YES ) { /* We have detected a collision and now call the collision functions of the collided objects. */ - if (tux.base.ym > 0) + if (tux.base.ym > 0 && bad_guys[i].kind != BAD_MONEY) { badguy_collision(&bad_guys[i], &tux, CO_PLAYER); }