hedgewars/GSHandlers.inc
changeset 4155 9160dbe77118
parent 4153 6bd94e4c5d65
child 4160 043c17a8b3ca
--- 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)