* Small bugfix: Avatar rezzing from grid mode should no longer place you underground if you have terrain of reasonable height.

This commit is contained in:
Adam Frisby
2007-06-05 11:59:38 +00:00
parent 3c261876a1
commit 7347f146c6
2 changed files with 7 additions and 0 deletions

View File

@@ -118,6 +118,12 @@ namespace OpenSim
{
this.m_child = m_authenticateSessionsHandler.GetAgentChildStatus(initialcirpack.CircuitCode.Code);
this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code);
// Dont rez new users underground
float aboveGround = 3.0f; // rez at least 3 meters above ground
if (this.startpos.Z < (m_world.Terrain[(int)this.startpos.X, (int)this.startpos.Y] + aboveGround))
this.startpos.Z = m_world.Terrain[(int)this.startpos.X, (int)this.startpos.Y] + aboveGround;
//Console.WriteLine("start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z);
}
else