Remove steam on explosion effects
authornemo
Tue, 02 Jun 2009 19:02:54 +0000
changeset 2146 f70cd51704c1
parent 2145 fa43619eb3e7
child 2147 ffa64983dc07
Remove steam on explosion effects
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Tue Jun 02 18:59:13 2009 +0000
+++ b/hedgewars/uVisualGears.pas	Tue Jun 02 19:02:54 2009 +0000
@@ -140,22 +140,14 @@
 end;
 
 procedure doStepFire(Gear: PVisualGear; Steps: Longword);
-var i: Integer;
 begin
 Gear^.X:= Gear^.X + Gear^.dX * Steps;
 
 Gear^.Y:= Gear^.Y + Gear^.dY * Steps;// + cGravity * (Steps * Steps);
 Gear^.dY:= Gear^.dY + cGravity * Steps;
 
-if (Gear^.FrameTicks <= Steps) or (hwRound(Gear^.Y) > cWaterLine) then
-	begin
-	if hwRound(Gear^.Y) > cWaterLine then for i:= 0 to 3 do
-		begin
-		AddVisualGear(hwRound(Gear^.X) - 16 + Random(32), hwRound(Gear^.Y) - 16 + Random(16), vgtSteam);
-		PlaySound(sndVaporize, false, nil);
-		end;
-	DeleteVisualGear(Gear);
-	end
+if Gear^.FrameTicks <= Steps then
+       DeleteVisualGear(Gear)
 else
 	dec(Gear^.FrameTicks, Steps)
 end;