# HG changeset patch # User unc0rr # Date 1150838535 0 # Node ID d8a526934b9f7c47e0aafd441f9ee468a52f0a93 # Parent cbb93eb903043fbb5be425ca29c674edfc9a2482 Show the bot thinking, when he does it after attack diff -r cbb93eb90304 -r d8a526934b9f hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Tue Jun 20 21:21:31 2006 +0000 +++ b/hedgewars/uWorld.pas Tue Jun 20 21:22:15 2006 +0000 @@ -135,11 +135,11 @@ // Team.NameRect, Surface); end else // Current hedgehog begin - if (Gear.State and (gstMoving or gstAttacked or gstDrowning or gstFalling))=0 then + if (Gear.State and (gstMoving or gstDrowning or gstFalling)) = 0 then if (Gear.State and gstHHThinking) <> 0 then DrawGear(sQuestion, Round(Gear.X) - 10 + WorldDx, Round(Gear.Y) - cHHRadius - 34 + WorldDy, Surface) else - if ShowCrosshair then + if ShowCrosshair and ((Gear.State and gstAttacked) = 0) then DrawCaption(Round(Gear.X + Sign(Gear.dX) * Sin(Gear.Angle*pi/cMaxAngle)*60) + WorldDx, Round(Gear.Y - Cos(Gear.Angle*pi/cMaxAngle)*60) + WorldDy - 4, Team.CrossHairRect, Surface)