don't hide target cursor if a hedgehog (other than current) is drowning, thanks to mikade for pointing this out
authorsheepluva
Mon, 31 Oct 2011 13:12:10 +0100
changeset 6248 103bc8fd4f1b
parent 6247 6dfad55fd71c
child 6249 cacab1db8af8
don't hide target cursor if a hedgehog (other than current) is drowning, thanks to mikade for pointing this out
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Mon Oct 31 03:08:16 2011 +0100
+++ b/hedgewars/HHHandlers.inc	Mon Oct 31 13:12:10 2011 +0100
@@ -877,7 +877,10 @@
       Gear^.Y:= Gear^.Y + _1
       end;
    CheckGearDrowning(Gear);
-   if (Gear^.State and gstDrowning) <> 0 then isCursorVisible:= false
+   // hide target cursor if current hog is drowning
+   if (Gear^.State and gstDrowning) <> 0 then
+       if (CurrentHedgehog^.Gear = Gear) then
+          isCursorVisible:= false
    end;
 
 if (hwAbs(Gear^.dY) > _0) and (Gear^.FlightTime > 0) and ((GameFlags and gfLowGravity) = 0) then