hedgewars/uGears.pas
changeset 3770 f54e8cb9a12b
parent 3768 39947624dabb
child 3773 f552c7b439fa
--- a/hedgewars/uGears.pas	Thu Aug 26 06:06:28 2010 -0400
+++ b/hedgewars/uGears.pas	Thu Aug 26 14:02:48 2010 +0100
@@ -1549,7 +1549,8 @@
     gear^.dX := _0;
     gear^.dY := _0;
     gear^.State := gstWait;
-    FindPlace(Gear, false, 0, LAND_WIDTH); 
+    inc(CurrentHedgehog^.Team^.stats.AIKills);
+    FindPlace(gear, false, 0, LAND_WIDTH); 
     RenderHealth(PHedgehog(gear^.Hedgehog)^);
     RecountTeamHealth(PHedgehog(gear^.Hedgehog)^.Team);
     ScriptCall('onResurrect', gear^.uid);