From c4ceca7307299ff8ccf59ca2b3b68950206c40cb Mon Sep 17 00:00:00 2001 From: Jim Radford Date: Thu, 22 May 2008 05:35:10 +0000 Subject: [PATCH] LIBOMV-246 Cleans up resource usage in parcel tracking git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1878 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife/ParcelManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsecondlife/ParcelManager.cs b/libsecondlife/ParcelManager.cs index 7324de50..c844560b 100644 --- a/libsecondlife/ParcelManager.cs +++ b/libsecondlife/ParcelManager.cs @@ -844,11 +844,12 @@ namespace libsecondlife /// If TRUE, will force a full refresh public void RequestAllSimParcels(Simulator simulator, bool refresh) { - if (refresh) { lock (simulator.ParcelMap) - simulator.ParcelMap = new int[64, 64]; + for (int y = 0; y < 64; y++) + for (int x = 0; x < 64; x++) + simulator.ParcelMap[y, x] = 0; } Thread th = new Thread(delegate() @@ -869,6 +870,7 @@ namespace libsecondlife } } }); + th.Start(); }