diff options
author | Adam Frisby | 2007-06-05 11:59:38 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-05 11:59:38 +0000 |
commit | 7347f146c6f402351917a04e76abc353c03503b6 (patch) | |
tree | 8b69c4191abed206370091d6bb09b70f11a1f45c /OpenSim/OpenSim.RegionServer/ClientView.cs | |
parent | *Cleaned up Configuration Setup questions (diff) | |
download | opensim-SC_OLD-7347f146c6f402351917a04e76abc353c03503b6.zip opensim-SC_OLD-7347f146c6f402351917a04e76abc353c03503b6.tar.gz opensim-SC_OLD-7347f146c6f402351917a04e76abc353c03503b6.tar.bz2 opensim-SC_OLD-7347f146c6f402351917a04e76abc353c03503b6.tar.xz |
* Small bugfix: Avatar rezzing from grid mode should no longer place you underground if you have terrain of reasonable height.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.cs b/OpenSim/OpenSim.RegionServer/ClientView.cs index 51e5fd6..586c9df 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.cs | |||
@@ -118,6 +118,12 @@ namespace OpenSim | |||
118 | { | 118 | { |
119 | this.m_child = m_authenticateSessionsHandler.GetAgentChildStatus(initialcirpack.CircuitCode.Code); | 119 | this.m_child = m_authenticateSessionsHandler.GetAgentChildStatus(initialcirpack.CircuitCode.Code); |
120 | this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code); | 120 | this.startpos = m_authenticateSessionsHandler.GetPosition(initialcirpack.CircuitCode.Code); |
121 | |||
122 | // Dont rez new users underground | ||
123 | float aboveGround = 3.0f; // rez at least 3 meters above ground | ||
124 | if (this.startpos.Z < (m_world.Terrain[(int)this.startpos.X, (int)this.startpos.Y] + aboveGround)) | ||
125 | this.startpos.Z = m_world.Terrain[(int)this.startpos.X, (int)this.startpos.Y] + aboveGround; | ||
126 | |||
121 | //Console.WriteLine("start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z); | 127 | //Console.WriteLine("start pos is " + this.startpos.X + " , " + this.startpos.Y + " , " + this.startpos.Z); |
122 | } | 128 | } |
123 | else | 129 | else |