LIBOMV-246 Cleans up resource usage in parcel tracking

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1878 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2008-05-22 05:35:10 +00:00
parent 9638aecb72
commit c4ceca7307

View File

@@ -844,11 +844,12 @@ namespace libsecondlife
/// <param name="refresh">If TRUE, will force a full refresh</param>
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();
}