--- a/hedgewars/uAI.pas Thu Aug 26 23:59:18 2010 +0200
+++ b/hedgewars/uAI.pas Wed Oct 27 14:02:20 2010 +0200
@@ -71,7 +71,7 @@
if (Targets.ar[i].Score >= 0) and (not StopThinking) then
begin
with CurrentHedgehog^ do
- a:= Ammo^[CurSlot, CurAmmo].AmmoType;
+ a:= CurAmmoType;
aa:= a;
repeat
if (CanUseAmmo[a]) and
@@ -212,7 +212,7 @@
Pop(ticks, Actions, Me^);
AddAction(Actions, Me^.Message, aim_push, 250, 0, 0);
- if (Me^.Message and gm_Left) <> 0 then AddAction(Actions, aia_WaitXL, hwRound(Me^.X), 0, 0, 0)
+ if (Me^.Message and gmLeft) <> 0 then AddAction(Actions, aia_WaitXL, hwRound(Me^.X), 0, 0, 0)
else AddAction(Actions, aia_WaitXR, hwRound(Me^.X), 0, 0, 0);
steps:= 0;