# HG changeset patch # User nemo # Date 1289095392 14400 # Node ID 9160dbe771189443c163aef06362e61cf77d5347 # Parent 20b30049934028913f3f7cb15e980f3fcaa3d259 Prevent escape diff -r 20b300499340 -r 9160dbe77118 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Sat Nov 06 21:00:37 2010 -0400 +++ b/hedgewars/GSHandlers.inc Sat Nov 06 22:03:12 2010 -0400 @@ -3068,6 +3068,7 @@ // For some reason I need to reapply followgear here, something else grabs it otherwise. if not bShowAmmoMenu and not CurrentTeam^.ExtDriven then FollowGear := HHGear; + if not isUnderWater and hasBorder and ((HHGear^.X < _0) or (hwRound(HHGear^.X) > LAND_WIDTH)) then HHGear^.dY.isNegative:= false; if ((Gear^.State and gsttmpFlag) = 0) or (HHGear^.dY < _0) then doStepHedgehogMoving(HHGear); if // (Gear^.Health = 0) diff -r 20b300499340 -r 9160dbe77118 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sat Nov 06 21:00:37 2010 -0400 +++ b/hedgewars/uGears.pas Sat Nov 06 22:03:12 2010 -0400 @@ -1730,8 +1730,6 @@ FollowGear:= AddGear(0, 0, gtCase, 0, _0, _0, 0); t:= GetRandom(t); i:= Low(TAmmoType); - if (Ammoz[i].Ammo.Propz and ammoprop_Utility) = 0 then - dec(t, Ammoz[i].Probability); while t >= 0 do begin inc(i); @@ -1751,8 +1749,6 @@ FollowGear:= AddGear(0, 0, gtCase, 0, _0, _0, 0); t:= GetRandom(t); i:= Low(TAmmoType); - if (Ammoz[i].Ammo.Propz and ammoprop_Utility) <> 0 then - dec(t, Ammoz[i].Probability); while t >= 0 do begin inc(i);