Smaxx excludes flames from triggering homerun sound, presumably any other weapon still can??
authornemo
Fri, 16 Oct 2009 14:53:58 +0000
changeset 2491 525e7d3a4958
parent 2490 d8e0630087a0
child 2492 9e80b7fc4017
Smaxx excludes flames from triggering homerun sound, presumably any other weapon still can??
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Fri Oct 16 14:48:28 2009 +0000
+++ b/hedgewars/uGears.pas	Fri Oct 16 14:53:58 2009 +0000
@@ -1684,7 +1684,7 @@
 	Gear:= t^.ar[i];
 	if (Gear^.State and gstNoDamage) = 0 then
 		begin
-		if (Gear^.Kind = gtHedgehog) and (Ammo^.State and gsttmpFlag <> 0) then Gear^.FlightTime:= 1;
+		if (Gear^.Kind = gtHedgehog) and (Ammo^.State and gsttmpFlag <> 0) and (Ammo^.Kind <> gtFlame) then Gear^.FlightTime:= 1;
 		
 		case Gear^.Kind of
 			gtHedgehog,