* Found the land bug, yay

ThreadPoolClientBranch
Teravus Ovares 2008-02-20 20:07:12 +00:00
parent f3190810d3
commit 740ce20d9d
3 changed files with 18 additions and 5 deletions

View File

@ -43,6 +43,7 @@ Patches
* alex_carnell
* webmage (International Business Machines Corp.)
* jimbo2120 (International Business Machines Corp.)
* brianw/Sir_Ahzz
LSL Devs

View File

@ -576,7 +576,7 @@ namespace OpenSim.Region.Environment.LandManagement
Land currentParcel = null;
try
{
getLandObject(start_x + x, start_y + y);
currentParcel = getLandObject(start_x + x, start_y + y);
}
catch (Exception)
{

View File

@ -136,11 +136,15 @@ namespace OpenSim.Region.Physics.Manager
// a race condition if the last subscriber unsubscribes
// immediately after the null check and before the event is raised.
RequestTerseUpdate handler = OnRequestTerseUpdate;
if (handler != null)
{
lock (handler)
{
handler();
}
}
}
public virtual void RaiseOutOfBounds(PhysicsVector pos)
{
@ -149,20 +153,28 @@ namespace OpenSim.Region.Physics.Manager
// immediately after the null check and before the event is raised.
OutOfBounds handler = OnOutOfBounds;
if (handler != null)
{
lock (handler)
{
handler(pos);
}
}
}
public virtual void SendCollisionUpdate(EventArgs e)
{
CollisionUpdate handler = OnCollisionUpdate;
if (handler != null)
{
lock (handler)
{
handler(e);
}
}
}
public abstract PhysicsVector Position { get; set; }