hedgewars/GSHandlers.inc
changeset 1045 ea195268734f
parent 1024 a6942122c31d
child 1046 c22d833c3ae2
--- a/hedgewars/GSHandlers.inc	Tue Jul 01 22:26:36 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Fri Jul 04 14:40:52 2008 +0000
@@ -782,7 +782,7 @@
 end;
 
 ////////////////////////////////////////////////////////////////////////////////
-procedure doStepExplosion(Gear: PGear);
+procedure doStepExplosionWork(Gear: PGear);
 begin
 inc(Gear^.Timer);
 if Gear^.Timer > 75 then
@@ -793,6 +793,13 @@
    end;
 end;
 
+procedure doStepExplosion(Gear: PGear);
+var i: LongWord;
+begin
+for i:= 0 to 15 do AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtExplPart);
+Gear^.doStep:= @doStepExplosionWork
+end;
+
 ////////////////////////////////////////////////////////////////////////////////
 procedure doStepMine(Gear: PGear);
 begin