# HG changeset patch # User unc0rr # Date 1231772130 0 # Node ID f010d68adbb7d771e8a38ce32cb5ec42ce725573 # Parent 1e51e80c383cec112a3d08cfa45aaeaba3e9b70c Fix two cursor bugs diff -r 1e51e80c383c -r f010d68adbb7 hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Mon Jan 12 14:50:22 2009 +0000 +++ b/hedgewars/HHHandlers.inc Mon Jan 12 14:55:30 2009 +0000 @@ -499,13 +499,14 @@ Gear^.Message:= 0; if (TurnTimeLeft = 0) or (Gear^.Damage > 0) then - begin - TurnTimeLeft:= 0; - Gear^.State:= Gear^.State and not (gstHHDriven or gstAnimation); - if Gear^.Damage > 0 then - Gear^.State:= Gear^.State and not (gstHHJumping or gstHHHJump); - exit - end; + begin + TurnTimeLeft:= 0; + isCursorVisible:= false; + Gear^.State:= Gear^.State and not (gstHHDriven or gstAnimation); + if Gear^.Damage > 0 then + Gear^.State:= Gear^.State and not (gstHHJumping or gstHHHJump); + exit + end; if (Gear^.State and gstAnimation) <> 0 then begin diff -r 1e51e80c383c -r f010d68adbb7 hedgewars/hwengine.dpr --- a/hedgewars/hwengine.dpr Mon Jan 12 14:50:22 2009 +0000 +++ b/hedgewars/hwengine.dpr Mon Jan 12 14:55:30 2009 +0000 @@ -93,8 +93,8 @@ end; gsConfirm, gsGame: begin + DrawWorld(Lag); // never place between ProcessKbd and DoGameTick - bugs due to /put cmd and isCursorVisible ProcessKbd; - DrawWorld(Lag); DoGameTick(Lag); ProcessVisualGears(Lag); end;