Some tiny improvements to AI walking algorythm
authorunc0rr
Wed, 25 Jul 2012 12:29:53 +0400
changeset 7430 9c132b368ddb
parent 7427 48f9d53c844a
child 7433 c7fff3e61d49
Some tiny improvements to AI walking algorythm
hedgewars/uAIMisc.pas
--- a/hedgewars/uAIMisc.pas	Wed Jul 25 12:28:14 2012 +0400
+++ b/hedgewars/uAIMisc.pas	Wed Jul 25 12:29:53 2012 +0400
@@ -170,7 +170,7 @@
     begin
         case Gear^.Kind of
             gtCase:
-            AddBonus(hwRound(Gear^.X), hwRound(Gear^.Y), 33, 25);
+                AddBonus(hwRound(Gear^.X), hwRound(Gear^.Y) + 3, 33, 28);
             gtFlame:
                 if (Gear^.State and gsttmpFlag) <> 0 then
                     AddBonus(hwRound(Gear^.X), hwRound(Gear^.Y), 20, -50);
@@ -673,6 +673,7 @@
 var pX, pY, tY: LongInt;
 begin
 HHGo:= false;
+Gear^.CollisionMask:= $FF7F;
 AltGear^:= Gear^;
 
 GoInfo.Ticks:= 0;