mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Fix for GetTerrainHeightAtXY to make it compatible when Constants.RegionSize isn't 256
This commit is contained in:
@@ -1564,12 +1564,13 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
m_parentScene = pScene;
|
||||
|
||||
}
|
||||
// Recovered for use by fly height. Kitto Flora
|
||||
|
||||
// Recovered for use by fly height. Kitto Flora
|
||||
public float GetTerrainHeightAtXY(float x, float y)
|
||||
{
|
||||
|
||||
int offsetX = ((int) (x/256)) * 256;
|
||||
int offsetY = ((int) (y/256)) * 256;
|
||||
int offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
int offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
|
||||
IntPtr heightFieldGeom = IntPtr.Zero;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user