Fix charging sound continuing to play on hog damage (#236)
authorWuzzy <almikes@aol.com>
Fri, 22 Sep 2017 23:07:52 +0200
changeset 12497 47be9f3e61e9
parent 12496 24cd4840d3e2
child 12498 f3d6f1b0b59d
Fix charging sound continuing to play on hog damage (#236)
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Fri Sep 22 19:26:57 2017 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Fri Sep 22 23:07:52 2017 +0200
@@ -1262,6 +1262,7 @@
     isCursorVisible:= false;
     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
     AttackBar:= 0;
+    StopSound(sndThrowPowerUp);
     LuaEndTurnRequested:= false;
     LuaNoEndTurnTaunts:= false;
     if HHGear^.Damage > 0 then