mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Added a child agent check to the ChildAgentData Update to make sure that you're a child agent before applying the changes from the grid comms. Doing this to rule it out as a source of a few bugs such as the Zombie bug and the Express Train to 0,0,0 bug.
This commit is contained in:
@@ -1754,6 +1754,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public void ChildAgentDataUpdate(ChildAgentDataUpdate cAgentData, uint tRegionX, uint tRegionY, uint rRegionX, uint rRegionY)
|
||||
{
|
||||
//
|
||||
if (!IsChildAgent)
|
||||
return;
|
||||
|
||||
int shiftx = ((int)rRegionX - (int)tRegionX) * (int)Constants.RegionSize;
|
||||
int shifty = ((int)rRegionY - (int)tRegionY) * (int)Constants.RegionSize;
|
||||
|
||||
@@ -1766,7 +1769,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
|
||||
m_godlevel = cAgentData.godlevel;
|
||||
SetHeight(cAgentData.AVHeight);
|
||||
m_avHeight = cAgentData.AVHeight;
|
||||
//SetHeight(cAgentData.AVHeight);
|
||||
|
||||
ControllingClient.SetChildAgentThrottle(cAgentData.throttles);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user