# HG changeset patch # User unc0rr # Date 1256474508 0 # Node ID 0899ce8ad77f802b56199a8b67a6683df4df3394 # Parent cc049fbb65efb14c2ab9f985e3cb9ffbf5c60d56 Smaxx: only allow change direction when shift key is pressed diff -r cc049fbb65ef -r 0899ce8ad77f hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Sun Oct 25 12:40:47 2009 +0000 +++ b/hedgewars/HHHandlers.inc Sun Oct 25 12:41:48 2009 +0000 @@ -431,7 +431,9 @@ or TestCollisionYwithGear(Gear, -1)) then Gear^.Y:= Gear^.Y - _1; end; - if (not cArtillery) and (not TestCollisionXwithGear(Gear, hwSign(Gear^.dX))) then Gear^.X:= Gear^.X + SignAs(_1, Gear^.dX); + if (not cArtillery) and ((Gear^.Message and gm_Precise) = 0) and (not TestCollisionXwithGear(Gear, hwSign(Gear^.dX))) then + Gear^.X:= Gear^.X + SignAs(_1, Gear^.dX); + SetAllHHToActive; if not TestCollisionYwithGear(Gear, 1) then @@ -773,4 +775,4 @@ if Team^.hasGone then TeamGoneEffect(Team^); doStepHedgehogDriven(Gear) end; -end; \ No newline at end of file +end;