# HG changeset patch
# User koda
# Date 1369817020 -7200
# Node ID 6cffcbef02e4e5baddba1449e93a722d14c57d24
# Parent  e7bcdf4f492fec969b499c4c26aa804e8ad61a47
add hog freeze sound

diff -r e7bcdf4f492f -r 6cffcbef02e4 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/GSHandlers.inc	Wed May 29 10:43:40 2013 +0200
@@ -5284,7 +5284,10 @@
                                 if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] < 256 then
                                     hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] := hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] + 1
                                 else if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] = 256 then
+                                    begin
                                     hogs.ar^[i]^.Hedgehog^.Effects[heFrozen]:= 200000-1;//cHedgehogTurnTime + cReadyDelay
+                                    PlaySound(sndHogFreeze);
+                                    end;
                                 end;
                 inc(Pos)
                 end
diff -r e7bcdf4f492f -r 6cffcbef02e4 hedgewars/uSound.pas
--- a/hedgewars/uSound.pas	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/uSound.pas	Wed May 29 10:43:40 2013 +0200
@@ -250,7 +250,8 @@
             (FileName:                'plane.ogg'; Path: ptSounds),// sndPlane
             (FileName:               'TARDIS.ogg'; Path: ptSounds),// sndTardis
             (FileName:    'frozen_hog_impact.ogg'; Path: ptSounds),// sndFrozenHogImpact
-            (FileName:             'ice_beam.ogg'; Path: ptSounds) // sndIceBeam
+            (FileName:             'ice_beam.ogg'; Path: ptSounds),// sndIceBeam
+            (FileName:           'hog_freeze.ogg'; Path: ptSounds) // sndHogFreeze
             );
 
 
diff -r e7bcdf4f492f -r 6cffcbef02e4 hedgewars/uTypes.pas
--- a/hedgewars/uTypes.pas	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/uTypes.pas	Wed May 29 10:43:40 2013 +0200
@@ -140,7 +140,8 @@
             sndPoisonCough, sndPoisonMoan, sndBirdyLay, sndWhistle, sndBeeWater,
             sndPiano0, sndPiano1, sndPiano2, sndPiano3, sndPiano4, sndPiano5, sndPiano6, sndPiano7, sndPiano8,
             sndSkip, sndSineGun, sndOoff1, sndOoff2, sndOoff3, sndWhack,
-            sndComeonthen, sndParachute, sndBump, sndResurrector, sndPlane, sndTardis, sndFrozenHogImpact, sndIceBeam);
+            sndComeonthen, sndParachute, sndBump, sndResurrector, sndPlane, sndTardis, sndFrozenHogImpact, sndIceBeam, sndHogFreeze
+            );
 
     // Available ammo types to be used by hedgehogs
     TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer, // 6
diff -r e7bcdf4f492f -r 6cffcbef02e4 share/hedgewars/Data/Sounds/hog_freeze.ogg
Binary file share/hedgewars/Data/Sounds/hog_freeze.ogg has changed