Fixed positioning of mine explosions.
Accidentally put "x" instead of "y". Whoops! Fixed now.
This commit is contained in:
parent
822ff849e4
commit
cac29f72a2
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue