hedgewars/uAI.pas
changeset 522 ca089787f59d
parent 509 fd58135a4407
child 542 ec26095f1bed
equal deleted inserted replaced
521:bc8fd78d7598 522:ca089787f59d
   279 var a: TAmmoType;
   279 var a: TAmmoType;
   280 begin
   280 begin
   281 if ((Me^.State and (gstAttacking or gstHHJumping or gstFalling or gstMoving)) <> 0)
   281 if ((Me^.State and (gstAttacking or gstHHJumping or gstFalling or gstMoving)) <> 0)
   282    or isInMultiShoot then exit;
   282    or isInMultiShoot then exit;
   283 
   283 
   284 DeleteCI(Me); // don't let collision info in Land to confuse AI
   284 //DeleteCI(Me); // this might break demo 
   285 Me^.State:= Me^.State or gstHHThinking;
   285 Me^.State:= Me^.State or gstHHThinking;
   286 Me^.Message:= 0;
   286 Me^.Message:= 0;
   287 
   287 
   288 BestActions.Count:= 0;
   288 BestActions.Count:= 0;
   289 BestActions.Pos:= 0;
   289 BestActions.Pos:= 0;