aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Physics
diff options
context:
space:
mode:
authorMW2007-05-15 20:44:14 +0000
committerMW2007-05-15 20:44:14 +0000
commitccf046e8e212753ffe2144e2133d558b380740c4 (patch)
treeedd5591eade07de329e08e53ce2c13655c807f6c /OpenSim.Physics
parentChanged session ID generation to use crypto generator, and this time - work. ... (diff)
downloadopensim-SC_OLD-ccf046e8e212753ffe2144e2133d558b380740c4.zip
opensim-SC_OLD-ccf046e8e212753ffe2144e2133d558b380740c4.tar.gz
opensim-SC_OLD-ccf046e8e212753ffe2144e2133d558b380740c4.tar.bz2
opensim-SC_OLD-ccf046e8e212753ffe2144e2133d558b380740c4.tar.xz
fixed part of the bug from 116 (should no longer get the repeated Failed with exception System.IndexOutOfRangeException: Array index is out of range error)
Diffstat (limited to 'OpenSim.Physics')
-rw-r--r--OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
index b886f46..d4515ca 100644
--- a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
+++ b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
@@ -107,7 +107,10 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
107 } 107 }
108 if(actor.Position.Z < (_heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1)) 108 if(actor.Position.Z < (_heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1))
109 {*/ 109 {*/
110 actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1; 110 if (actor.Position.Y > 0 && actor.Position.Y < 256 && actor.Position.X > 0 && actor.Position.X < 256)
111 {
112 actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X] + 1;
113 }
111 //} 114 //}
112 115
113 116