diff --git a/sound/000000_large_explosion.ogg b/sound/000000_large_explosion.ogg index 7ea3885..d4b7933 100644 Binary files a/sound/000000_large_explosion.ogg and b/sound/000000_large_explosion.ogg differ diff --git a/sound/000000_tow-rope-attach.ogg b/sound/000000_tow-rope-attach.ogg index ee9e7b8..cfc75af 100644 Binary files a/sound/000000_tow-rope-attach.ogg and b/sound/000000_tow-rope-attach.ogg differ diff --git a/sound/146311__jgeralyn__shortailenliketone2-lower.ogg b/sound/146311__jgeralyn__shortailenliketone2-lower.ogg index 2132314..20e111f 100644 Binary files a/sound/146311__jgeralyn__shortailenliketone2-lower.ogg and b/sound/146311__jgeralyn__shortailenliketone2-lower.ogg differ diff --git a/sound/162265__qubodup__explosive.ogg b/sound/162265__qubodup__explosive.ogg index 3126c69..45ecb36 100644 Binary files a/sound/162265__qubodup__explosive.ogg and b/sound/162265__qubodup__explosive.ogg differ diff --git a/sound/207322__animationisaac__short-explosion.ogg b/sound/207322__animationisaac__short-explosion.ogg index 55a756f..86ba5b3 100644 Binary files a/sound/207322__animationisaac__short-explosion.ogg and b/sound/207322__animationisaac__short-explosion.ogg differ diff --git a/sound/246420__oceanictrancer__game-sound-effect-menu.ogg b/sound/246420__oceanictrancer__game-sound-effect-menu.ogg index f9e9c69..6c38258 100644 Binary files a/sound/246420__oceanictrancer__game-sound-effect-menu.ogg and b/sound/246420__oceanictrancer__game-sound-effect-menu.ogg differ diff --git a/sound/254071__tb0y298__firework-explosion.ogg b/sound/254071__tb0y298__firework-explosion.ogg index 3570832..709c979 100644 Binary files a/sound/254071__tb0y298__firework-explosion.ogg and b/sound/254071__tb0y298__firework-explosion.ogg differ diff --git a/sound/263621__jamesabdulrahman__permission-to-panic.ogg b/sound/263621__jamesabdulrahman__permission-to-panic.ogg deleted file mode 100644 index 22a380b..0000000 Binary files a/sound/263621__jamesabdulrahman__permission-to-panic.ogg and /dev/null differ diff --git a/sound/268344__julien-matthey__jm-noiz-laser-01.ogg b/sound/268344__julien-matthey__jm-noiz-laser-01.ogg index 46bd87d..7b442a0 100644 Binary files a/sound/268344__julien-matthey__jm-noiz-laser-01.ogg and b/sound/268344__julien-matthey__jm-noiz-laser-01.ogg differ diff --git a/sound/275151__bird-man__gun-shot.ogg b/sound/275151__bird-man__gun-shot.ogg index 687c660..b67ca19 100644 Binary files a/sound/275151__bird-man__gun-shot.ogg and b/sound/275151__bird-man__gun-shot.ogg differ diff --git a/sound/276912__pauldihor__transform.ogg b/sound/276912__pauldihor__transform.ogg index eeec1b0..c7593fb 100644 Binary files a/sound/276912__pauldihor__transform.ogg and b/sound/276912__pauldihor__transform.ogg differ diff --git a/sound/322603__clippysounds__glass-break.ogg b/sound/322603__clippysounds__glass-break.ogg index 11e4bd1..cac3dc0 100644 Binary files a/sound/322603__clippysounds__glass-break.ogg and b/sound/322603__clippysounds__glass-break.ogg differ diff --git a/sound/42106__marcuslee__laser-wrath-4.ogg b/sound/42106__marcuslee__laser-wrath-4.ogg index d2cde08..6a9e5df 100644 Binary files a/sound/42106__marcuslee__laser-wrath-4.ogg and b/sound/42106__marcuslee__laser-wrath-4.ogg differ diff --git a/sound/49678__ejfortin__energy-short-sword-7.ogg b/sound/49678__ejfortin__energy-short-sword-7.ogg index 94dc06a..c3640b8 100644 Binary files a/sound/49678__ejfortin__energy-short-sword-7.ogg and b/sound/49678__ejfortin__energy-short-sword-7.ogg differ diff --git a/sound/56246__q-k__latch-04.ogg b/sound/56246__q-k__latch-04.ogg index 75864ba..c6e9695 100644 Binary files a/sound/56246__q-k__latch-04.ogg and b/sound/56246__q-k__latch-04.ogg differ diff --git a/sound/65787__iwilldstroyu__laserrocket.ogg b/sound/65787__iwilldstroyu__laserrocket.ogg index 4fe9589..3a23f38 100644 Binary files a/sound/65787__iwilldstroyu__laserrocket.ogg and b/sound/65787__iwilldstroyu__laserrocket.ogg differ diff --git a/sound/77087__supraliminal__laser-short.ogg b/sound/77087__supraliminal__laser-short.ogg index 6e554d8..caf0274 100644 Binary files a/sound/77087__supraliminal__laser-short.ogg and b/sound/77087__supraliminal__laser-short.ogg differ diff --git a/src/system/sound.c b/src/system/sound.c index a2ed592..313983e 100644 --- a/src/system/sound.c +++ b/src/system/sound.c @@ -78,9 +78,8 @@ void playSound(int id) void playBattleSound(int id, int x, int y) { - float distance; + float distance, bearing, vol; int channel; - float vol; if (player->alive == ALIVE_ALIVE) { @@ -101,7 +100,7 @@ void playBattleSound(int id, int x, int y) if (distance >= MIN_BATTLE_SOUND_DISTANCE) { - float bearing = 360 - getAngle(x, y, lastPlayerX, lastPlayerY); + bearing = 360 - getAngle(x, y, lastPlayerX, lastPlayerY); Mix_SetPosition(channel, (Sint16)bearing, (Uint8)distance); } else