mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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)
This commit is contained in:
@@ -107,7 +107,10 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
|
||||
}
|
||||
if(actor.Position.Z < (_heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1))
|
||||
{*/
|
||||
actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X]+1;
|
||||
if (actor.Position.Y > 0 && actor.Position.Y < 256 && actor.Position.X > 0 && actor.Position.X < 256)
|
||||
{
|
||||
actor.Position.Z = _heightMap[(int)actor.Position.Y * 256 + (int)actor.Position.X] + 1;
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user