hedgewars/GSHandlers.inc
changeset 3004 e9b3613cc3fb
parent 3002 9bf51d5a8a80
child 3019 d6e19f35d98d
--- a/hedgewars/GSHandlers.inc	Tue Mar 16 19:28:15 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Tue Mar 16 21:39:55 2010 +0000
@@ -249,6 +249,14 @@
         gtWatermelon: makeHogsWorry(Gear^.X, Gear^.Y, 75);
         gtHellishBomb: makeHogsWorry(Gear^.X, Gear^.Y, 90);
     end;
+
+if (Gear^.Kind = gtBall) and ((Gear^.State and gstTmpFlag) <> 0) then
+    begin
+    CheckCollision(Gear);
+    if (Gear^.State and gstCollision) <> 0 then
+        doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 20, EXPLDontDraw or EXPLNoGfx);
+    end;
+
 if Gear^.Timer = 0 then
     begin
     case Gear^.Kind of
@@ -353,7 +361,7 @@
     exit
     end;
 
-if Gear^.Kind = gtMelonPiece then
+if (Gear^.Kind = gtMelonPiece) or (Gear^.Kind = gtBall) then
     CalcRotationDirAngle(Gear)
 else
     if (GameTicks and $1F) = 0 then