diff -r 128ace913837 -r f39f0f614dbf hedgewars/uLandObjects.pas --- a/hedgewars/uLandObjects.pas Mon Jan 02 15:59:26 2023 +0100 +++ b/hedgewars/uLandObjects.pas Tue Jan 03 12:05:59 2023 +0100 @@ -153,9 +153,9 @@ color:= p^[x]; if (cReducedQuality and rqBlurryLand) = 0 then - pLandColor:= @LandPixels[cpY + y, cpX + x] + pLandColor:= @(LandPixelRow(cpY + y)^[cpX + x]) else - pLandColor:= @LandPixels[(cpY + y) div 2, (cpX + x) div 2]; + pLandColor:= @(LandPixelRow((cpY + y) div 2)^[(cpX + x) div 2]); landColor:= pLandColor^; alpha:= (landColor and AMask) shr AShift; @@ -208,9 +208,9 @@ if (color and AMask) <> 0 then begin if (cReducedQuality and rqBlurryLand) = 0 then - pLandColor:= @LandPixels[cpY + y, cpX + x] + pLandColor:= @(LandPixelRow(cpY + y)^[cpX + x]) else - pLandColor:= @LandPixels[(cpY + y) div 2, (cpX + x) div 2]; + pLandColor:= @(LandPixelRow((cpY + y) div 2)^[(cpX + x) div 2]); alpha:= (color and AMask) shr AShift; if ((alpha <> $FF) and ((pLandColor^) <> 0)) then @@ -263,9 +263,9 @@ color:= p^[x]; if (cReducedQuality and rqBlurryLand) = 0 then - pLandColor:= @LandPixels[cpY + y, cpX + x] + pLandColor:= @(LandPixelRow(cpY + y)^[cpX + x]) else - pLandColor:= @LandPixels[(cpY + y) div 2, (cpX + x) div 2]; + pLandColor:= @(LandPixelRow((cpY + y) div 2)^[(cpX + x) div 2]); landColor:= pLandColor^; alpha:= (landColor and AMask) shr AShift;