Added RemoveAvatar() method to physics plugins, should be called on log out (needs doing) and when downgrading a client to a child-avatar (should be working)

This commit is contained in:
MW
2007-05-15 21:26:10 +00:00
parent ccf046e8e2
commit 7f2fdb8054
6 changed files with 36 additions and 1 deletions

View File

@@ -84,7 +84,17 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
_actors.Add(act);
return act;
}
public override void RemoveAvatar(PhysicsActor actor)
{
BasicActor act = (BasicActor)actor;
if(_actors.Contains(act))
{
_actors.Remove(act);
}
}
public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
{
return null;