mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
minor change
This commit is contained in:
@@ -1939,7 +1939,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
/// <param name="region"></param>
|
||||
public void EnableChildAgent(ScenePresence sp, GridRegion region)
|
||||
{
|
||||
int viewrange =(int) sp.RegionViewDistance;
|
||||
int viewrange = (int)sp.RegionViewDistance;
|
||||
if(viewrange == 0)
|
||||
return;
|
||||
|
||||
Vector3 pos = sp.AbsolutePosition;
|
||||
RegionInfo curregion = sp.Scene.RegionInfo;
|
||||
|
||||
|
||||
@@ -1388,10 +1388,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return;
|
||||
|
||||
agent.DropOldNeighbours(old);
|
||||
|
||||
if(agent.RegionViewDistance == 0)
|
||||
return;
|
||||
|
||||
|
||||
EntityTransferModule.EnableChildAgent(agent, otherRegion);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user