Browse Source

fix flour bug

this bug permitted to throw bullets without being big, when you are small and take a flower
master
Milang 2 years ago
parent
commit
0eaaac1a9c
  1. BIN
      SuperCbr.g1a
  2. 11
      src/bonus.c
  3. 3
      src/mario.c

BIN
SuperCbr.g1a

Binary file not shown.

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

3
src/mario.c

@ -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…
Cancel
Save