Fixed positioning of mine explosions.

Accidentally put "x" instead of "y". Whoops! Fixed now.
This commit is contained in:
onpon4 2016-01-06 20:49:02 -05:00
parent 822ff849e4
commit cac29f72a2
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ void collectable_explode(collectables *collectable)
for (int i = 0 ; i < 10 ; i++)
explosion_add(RANDRANGE(collectable->x - 25, collectable->x + 25),
RANDRANGE(collectable->y - 25, collectable->x + 25), SP_BIG_EXPLOSION);
RANDRANGE(collectable->y - 25, collectable->y + 25), SP_BIG_EXPLOSION);
player_checkShockDamage(collectable->x, collectable->y);
}

View File

@ -1425,7 +1425,7 @@ static void game_doPlayer()
}
engine.keyState[KEY_UP] = engine.keyState[KEY_DOWN] = engine.keyState[KEY_LEFT] = engine.keyState[KEY_RIGHT] = 0;
if ((rand() % 3) == 0)
if (CHANCE(1. / 3.))
explosion_add(player.x + RANDRANGE(-10, 10),
player.y + RANDRANGE(-10, 10), SP_BIG_EXPLOSION);
if (player.shield == -99)