hedgewars/uGears.pas
changeset 3710 411f5c2b5292
parent 3697 d5b30d6373fc
child 3712 de2026031833
--- a/hedgewars/uGears.pas	Mon Aug 02 18:13:29 2010 +0200
+++ b/hedgewars/uGears.pas	Mon Aug 02 18:19:55 2010 +0200
@@ -201,7 +201,8 @@
             @doStepPiano,
             @doStepBomb,
             @doStepSineGunShot,
-            @doStepFlamethrower
+            @doStepFlamethrower,
+            @doStepSMine
             );
 
 procedure InsertGearToList(Gear: PGear);
@@ -354,6 +355,14 @@
                 else
                     gear^.Timer:= cMinesTime*1;
                 end;
+       gtSMine: begin
+                gear^.Health:= 10;
+                gear^.State:= gear^.State or gstMoving;
+                gear^.Radius:= 2;
+                gear^.Elasticity:= _0_55;
+                gear^.Friction:= _0_995;
+                gear^.Timer:= 500;
+                end;
         gtCase: begin
                 gear^.ImpactSound:= sndGraveImpact;
                 gear^.nImpactSounds:= 1;
@@ -1211,6 +1220,7 @@
         case Gear^.Kind of
             gtHedgehog,
                 gtMine,
+                gtSMine,
                 gtCase,
                 gtTarget,
                 gtFlame,
@@ -1286,6 +1296,7 @@
     case t^.Kind of
         gtHedgehog,
             gtMine,
+            gtSMine,
             gtCase,
             gtTarget,
             gtExplosives: begin
@@ -1340,6 +1351,7 @@
         case Gear^.Kind of
             gtHedgehog,
             gtMine,
+            gtSMine,
             gtTarget,
             gtCase,
             gtExplosives: begin