# HG changeset patch # User unc0rr # Date 1207065232 0 # Node ID de0af1ad26105087c9cd7a0c89a805553428fbf6 # Parent ee4fa9ff2a7b86c3b7a351527dc64fae7cda3c70 Fix tunnel drawing (specially for desert eagle) diff -r ee4fa9ff2a7b -r de0af1ad2610 hedgewars/uLandGraphics.pas --- a/hedgewars/uLandGraphics.pas Sat Mar 29 21:13:54 2008 +0000 +++ b/hedgewars/uLandGraphics.pas Tue Apr 01 15:53:52 2008 +0000 @@ -280,8 +280,8 @@ ny:= ny + dX; end; -t:= max(stY - HalfWidth * 2 - 4, 0); -ty:= min(stY + HalfWidth * 2 + 4, 1023) - t; +t:= max(stY - HalfWidth * 2 - 4 - abs(hwRound(dY * ticks)), 0); +ty:= min(stY + HalfWidth * 2 + 4 + abs(hwRound(dY * ticks)), 1023) - t; UpdateLandTexture(t, ty) end;