aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-19 15:37:50 +0000
committerTeravus Ovares2007-11-19 15:37:50 +0000
commit4afe393ce4d487b95a52b15cd53fdefa796c3d1e (patch)
tree687e8dee51a524c2e7cbbb536623d52fdb180bc4 /OpenSim/Region/Physics/OdePlugin
parenthopefully resolve mantis issue #10 by locking correcty around terrain methods (diff)
downloadopensim-SC-4afe393ce4d487b95a52b15cd53fdefa796c3d1e.zip
opensim-SC-4afe393ce4d487b95a52b15cd53fdefa796c3d1e.tar.gz
opensim-SC-4afe393ce4d487b95a52b15cd53fdefa796c3d1e.tar.bz2
opensim-SC-4afe393ce4d487b95a52b15cd53fdefa796c3d1e.tar.xz
* Space allocation fix for prim outside region. >256 & <0.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 4ee94b3..b40a98f 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -606,8 +606,20 @@ namespace OpenSim.Region.Physics.OdePlugin
606 public int[] calculateSpaceArrayItemFromPos(PhysicsVector pos) 606 public int[] calculateSpaceArrayItemFromPos(PhysicsVector pos)
607 { 607 {
608 int[] returnint = new int[2]; 608 int[] returnint = new int[2];
609
609 returnint[0] = (int)(pos.X / metersInSpace); 610 returnint[0] = (int)(pos.X / metersInSpace);
611
612 if (returnint[0] > ((int)(259f / metersInSpace)))
613 returnint[0] = ((int)(259f / metersInSpace));
614 if (returnint[0] < 0)
615 returnint[0] = 0;
616
610 returnint[1] = (int)(pos.Y / metersInSpace); 617 returnint[1] = (int)(pos.Y / metersInSpace);
618 if (returnint[0] > ((int)(259f / metersInSpace)))
619 returnint[0] = ((int)(259f / metersInSpace));
620 if (returnint[0] < 0)
621 returnint[0] = 0;
622
611 return returnint; 623 return returnint;
612 } 624 }
613 625