# HG changeset patch # User nemo # Date 1340801643 14400 # Node ID 5bb4bd846c87a472913c1bce9ca1adc81b91d610 # Parent 40aa797c4ef0e764b2b9ea46403ee42653054126 oops diff -r 40aa797c4ef0 -r 5bb4bd846c87 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Wed Jun 27 07:58:16 2012 -0400 +++ b/hedgewars/GSHandlers.inc Wed Jun 27 08:54:03 2012 -0400 @@ -4411,12 +4411,13 @@ ty := 0; // avoid compiler hints - if ((y and LAND_HEIGHT_MASK) = 0) and ((x and LAND_WIDTH_MASK) = 0) and (Land[y, x] and ($FF00 and not lfBouncy) <> 0) then + if ((y and LAND_HEIGHT_MASK) = 0) and ((x and LAND_WIDTH_MASK) = 0) and (Land[y, x] > 255) then begin Gear^.State := Gear^.State or gstCollision; Gear^.State := Gear^.State and (not gstMoving); if not CalcSlopeTangent(Gear, x, y, tx, ty, 255) + or (Land[y, x] and lfBouncy <> 0) or (DistanceI(tx,ty) < _12) then // reject shots at too irregular terrain begin loadNewPortalBall(Gear, true);