- View the diff current.
- View the source.
- Go to OpenSim/hack/emergencyPos.
1: 2009-08-31 (Mon) 17:53:53 iseki | |||
---|---|---|---|
Line 1: | Line 1: | ||
+ | *** [#nd8db2af] | ||
+ | // Fumi.Iseki | ||
+ | if (pos.X < 0 || pos.X >= (int)Constants.RegionSize || pos.Y < 0 || pos.Y >= (int)Constants.RegionSize || pos.Z < 0) { | ||
+ | m_log.WarnFormat("[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}.", pos, Name, UUID); | ||
+ | if (pos.X < 0) pos.X = 0; | ||
+ | else if (pos.X >= (int)Constants.RegionSize) pos.X = (int)Constants.RegionSize - 1; | ||
+ | if (pos.Y < 0) pos.Y = 0; | ||
+ | else if (pos.Y >= (int)Constants.RegionSize) pos.Y = (int)Constants.RegionSize - 1; | ||
+ | if (pos.Z < 0) pos.Z = 0; | ||
+ | } | ||
+ | /* | ||
+ | if (pos.X < 0 || pos.X >= (int)Constants.RegionSize || pos.Y < 0 || pos.Y >= (int)Constants.RegionSize || pos.Z < 0) | ||
+ | { | ||
+ | Vector3 emergencyPos = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f), 128); | ||
+ | |||
+ | m_log.WarnFormat( | ||
+ | "[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}. Substituting {3}", | ||
+ | pos, Name, UUID, emergencyPos); | ||
+ | |||
+ | pos = emergencyPos; | ||
+ | } | ||
+ | */ [#cf17a76c] |
- Backup list of OpenSim/hack/emergencyPos
- Backup diff of OpenSim/hack/emergencyPos(No. All)
- 1: 2009-08-31 (Mon) 17:53:53 iseki
- Cur: 2009-08-31 (Mon) 18:16:43 iseki