Keep crosshair active when using rope, regardless of alt wep
authornemo
Sat, 27 Mar 2010 15:41:21 +0000
changeset 3111 38e0f05afbdb
parent 3110 c8d7c852e26a
child 3112 f1bbe35ddb83
Keep crosshair active when using rope, regardless of alt wep
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Mar 27 14:57:41 2010 +0000
+++ b/hedgewars/uGears.pas	Sat Mar 27 15:41:21 2010 +0000
@@ -949,7 +949,7 @@
 if (Gear^.State and gstHHDriven) <> 0 then
     begin
     if ((Gear^.State and gstHHThinking) = 0) and
-       ShowCrosshair and
+       (ShowCrosshair or ((CurAmmoGear <> nil) and (CurAmmoGear^.Kind = gtRope))) and
        ((Gear^.State and (gstAttacked or gstAnimation)) = 0) then
         begin
 (* These calculations are a little complex for a few reasons: