From 92c06a5d0b9285789954b94f44e7c9a594762a44 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Fri, 1 Nov 2013 16:37:27 -0700 Subject: varregion: fix lawn-mower terrain fill so it works for non-square regions. Add some debugging logs on region creation to report region size. --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index c8e7eb5..d2fa837 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -1195,7 +1195,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP for (int j = y1 + 1; j <= y2; j++) SendLayerData(x2, j, map); - if (x2 - x1 > 0) + if (x2 - x1 > 0 && y2 - y1 > 0) SendLayerBottomLeft(map, x1, y1 + 1, x2 - 1, y2); } @@ -1209,7 +1209,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP for (int j = y2 - 1; j >= y1; j--) SendLayerData(x1, j, map); - if (x2 - x1 > 0) + if (x2 - x1 > 0 && y2 - y1 > 0) SendLayerTopRight(map, x1 + 1, y1, x2, y2 - 1); } -- cgit v1.1