--- a/hedgewars/uAI.pas Sat May 17 22:21:45 2008 +0000
+++ b/hedgewars/uAI.pas Sun May 18 10:54:43 2008 +0000
@@ -129,7 +129,7 @@
MadeActions: TActions;
Hedgehog: TGear;
end;
-
+
var Stack: record
Count: Longword;
States: array[0..Pred(cBranchStackSize)] of TStackEntry;
@@ -310,6 +310,7 @@
OutError('AI: no targets!?', false);
exit
end;
+
FillBonuses((Me^.State and gstAttacked) <> 0);
for a:= Low(TAmmoType) to High(TAmmoType) do
CanUseAmmo[a]:= Assigned(AmmoTests[a].proc) and HHHasAmmo(PHedgehog(Me^.Hedgehog)^, a);