mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
mantis 9133 replace some z < 0 checks by < Constants.MinSimulationHeight (-100)
This commit is contained in:
@@ -497,7 +497,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
sp.Name, position, m_sceneName);
|
||||
|
||||
// Teleport within the same region
|
||||
if (!m_scene.PositionIsInCurrentRegion(position) || position.Z < 0)
|
||||
if (!m_scene.PositionIsInCurrentRegion(position))
|
||||
{
|
||||
Vector3 emergencyPos = new(128, 128, 128);
|
||||
|
||||
@@ -520,6 +520,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
{
|
||||
position.Z = posZLimit;
|
||||
}
|
||||
|
||||
if(position.Z < Constants.MinSimulationHeight)
|
||||
position.Z = Constants.MinSimulationHeight;
|
||||
else if(position.Z > Constants.MaxSimulationHeight)
|
||||
position.Z = Constants.MaxSimulationHeight;
|
||||
|
||||
/*
|
||||
if(!sp.CheckLocalTPLandingPoint(ref position))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user