hedgewars/VGSHandlers.inc
changeset 3704 ed2b9c7fb260
parent 3699 e5e2cbc90891
child 3706 a79784328c03
--- a/hedgewars/VGSHandlers.inc	Sun Aug 01 22:08:07 2010 +0200
+++ b/hedgewars/VGSHandlers.inc	Mon Aug 02 00:48:15 2010 +0200
@@ -109,6 +109,22 @@
 end;
 
 ////////////////////////////////////////////////////////////////////////////////
+procedure doStepNote(Gear: PVisualGear; Steps: Longword);
+begin
+Gear^.X:= Gear^.X + Gear^.dX * Steps;
+
+Gear^.Y:= Gear^.Y + Gear^.dY * Steps;
+Gear^.dY:= Gear^.dY + cGravityf * Steps;
+
+Gear^.Angle:= round(Gear^.Angle + Steps) mod cMaxAngle;
+
+if Gear^.FrameTicks <= Steps then
+    DeleteVisualGear(Gear)
+else
+    dec(Gear^.FrameTicks, Steps)
+end;
+
+////////////////////////////////////////////////////////////////////////////////
 procedure doStepEgg(Gear: PVisualGear; Steps: Longword);
 begin
 Gear^.X:= Gear^.X + Gear^.dX * Steps;