fix flour bug
this bug permitted to throw bullets without being big, when you are small and take a flower
This commit is contained in:
parent
0f6f429514
commit
0eaaac1a9c
BIN
SuperCbr.g1a
BIN
SuperCbr.g1a
Binary file not shown.
11
src/bonus.c
11
src/bonus.c
|
@ -57,17 +57,12 @@ void bonusMove() //+collision
|
|||
int collide=boxContact(&mario.p, &bonus.b);
|
||||
if (collide)
|
||||
{
|
||||
if (bonus.type==BONUS_CHAMPI)
|
||||
if (bonus.type==BONUS_CHAMPI || bonus.type==BONUS_FLEUR)
|
||||
{
|
||||
if (mario.size==M_SMALL) marioBigger();
|
||||
else mario_has_bullets=1;
|
||||
bonusSet(BONUS_NONE,0,0);
|
||||
scoreAdd(1000);
|
||||
marioBigger();
|
||||
}
|
||||
if (bonus.type==BONUS_FLEUR)
|
||||
{
|
||||
bonusSet(BONUS_NONE,0,0);
|
||||
mario_has_bullets=1;
|
||||
scoreAdd(1000);
|
||||
}
|
||||
if (bonus.type==BONUS_1UP)
|
||||
{
|
||||
|
|
|
@ -46,8 +46,7 @@ void marioSmaller()
|
|||
mario.p.h=8;
|
||||
mario.size=M_SMALL;
|
||||
mario_has_bullets=0;
|
||||
if (mario_immunity==0)
|
||||
mario_immunity=1;
|
||||
if (mario_immunity==0) mario_immunity=1;
|
||||
}
|
||||
|
||||
void marioDraw()
|
||||
|
|
Loading…
Reference in New Issue