Fix a bug with visible cursor when hedgehog is dead
authorunc0rr
Tue, 13 Jan 2009 15:33:46 +0000
changeset 1658 208a3258afdf
parent 1657 dde8f60d3e07
child 1659 fd593a5e71fb
Fix a bug with visible cursor when hedgehog is dead
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Mon Jan 12 22:02:47 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Tue Jan 13 15:33:46 2009 +0000
@@ -485,7 +485,8 @@
       Gear^.dY:= _0;
       Gear^.Y:= Gear^.Y + _1
       end;
-   CheckGearDrowning(Gear)
+   CheckGearDrowning(Gear);
+   if (Gear^.State and gstDrowning) <> 0 then isCursorVisible:= false
    end
 end;