# HG changeset patch
# User unc0rr
# Date 1217168925 0
# Node ID 25d0ca2e4a7dae8b357dc84dbbed5c5f9ae1b6a4
# Parent  3660bbfc1cbaeddace6170321cce6332431f9109
Play sound before cake explodes

diff -r 3660bbfc1cba -r 25d0ca2e4a7d hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Jul 27 14:05:17 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jul 27 14:28:45 2008 +0000
@@ -1519,6 +1519,7 @@
 		gi:= gi^.NextGear
 		end;
 	Gear^.doStep:= @doStepCakeExpl;
+	PlaySound(sndCake, false)
 	end else dec(Gear^.Pos)
 end;
 
diff -r 3660bbfc1cba -r 25d0ca2e4a7d hedgewars/uConsts.pas
--- a/hedgewars/uConsts.pas	Sun Jul 27 14:05:17 2008 +0000
+++ b/hedgewars/uConsts.pas	Sun Jul 27 14:28:45 2008 +0000
@@ -68,7 +68,8 @@
                    sndJump3, sndYesSir, sndLaugh, sndIllGetYou, sndIncoming,
                    sndMissed, sndStupid, sndFirstBlood, sndBoring, sndByeBye,
                    sndSameTeam, sndNutter, sndReinforce, sndTraitor, sndRegret,
-                   sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze);
+                   sndEnemyDown, sndCoward, sndHurry, sndWatchIt, sndKamikaze,
+                   sndCake);
 
      TAmmoType  = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer,
                    amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, amWhip,
@@ -475,7 +476,8 @@
                 (FileName:        'Coward.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndCoward
                 (FileName:         'Hurry.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndHurry
                 (FileName:       'Watchit.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndWatchIt
-                (FileName:      'Kamikaze.ogg'; Path: ptVoices; id: nil; lastChan: 0) // sndKamikaze
+                (FileName:      'Kamikaze.ogg'; Path: ptVoices; id: nil; lastChan: 0),// sndKamikaze
+                (FileName:         'cake2.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndCake
                 );
 
       Ammoz: array [TAmmoType] of record