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:
Milang 2020-03-13 12:10:06 +01:00
parent 0f6f429514
commit 0eaaac1a9c
3 changed files with 4 additions and 10 deletions

Binary file not shown.

View File

@ -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)
{

View File

@ -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()