/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
void addExplosion(float x, float y, int radius, Entity *owner)
{
- audio.playSound(SND_GRENADE, CH_EXPLODE);
+ audio.playSound(SND_GRENADE, CH_EXPLODE, x);
float dx, dy;
int distX, distY;
{
if (enemy->flags & ENT_EXPLODES)
{
- audio.playSound(SND_ELECDEATH1 + Math::prand() % 3, CH_DEATH);
+ audio.playSound(SND_ELECDEATH1 + Math::prand() % 3, CH_DEATH, enemy->x);
}
else
{
if (game.gore)
{
- audio.playSound(SND_DEATH1 + Math::prand() % 3, CH_DEATH);
+ audio.playSound(SND_DEATH1 + Math::prand() % 3, CH_DEATH, enemy->x);
}
}
}
if (owner == &player)
{
- game.score += enemy->value;
+ addPlayerScore(enemy->value);
}
}