* Fix one physics crash for regions larger then 512mx512m

This commit is contained in:
Teravus Ovares (Dan Olivares)
2009-08-08 10:38:53 -04:00
parent b5727a1d77
commit e88903f481

View File

@@ -350,7 +350,10 @@ namespace OpenSim.Region.Physics.OdePlugin
}
// zero out a heightmap array float array (single dimention [flattened]))
_heightmap = new float[514*514];
if ((int)Constants.RegionSize == 256)
_heightmap = new float[514*514];
else
_heightmap = new float[(((int)Constants.RegionSize + 2) * ((int)Constants.RegionSize + 2))];
_watermap = new float[258 * 258];