hedgewars/HHHandlers.inc
changeset 6014 b432c4b9cc9b
parent 6011 519f8a58c021
child 6081 537bbd5c1a62
--- a/hedgewars/HHHandlers.inc	Sat Sep 24 21:21:21 2011 +0400
+++ b/hedgewars/HHHandlers.inc	Sat Sep 24 22:27:20 2011 +0400
@@ -873,7 +873,7 @@
 
 if (hwAbs(Gear^.dY) > _0) and (Gear^.FlightTime > 0) and ((GameFlags and gfLowGravity) = 0) then
     begin
-    inc(Gear^.FlightTime, 1);
+    inc(Gear^.FlightTime);
     if Gear^.FlightTime = 3000 then
         begin
         AddCaption(GetEventString(eidHomerun), cWhiteColor, capgrpMessage);
@@ -882,6 +882,7 @@
     end
 else
     begin
+    uStats.hedgehogFlight(Gear, Gear^.FlightTime);
     Gear^.FlightTime:= 0;
     end;