Add copyright headers. Minor formatting cleanup. Fix some compiler warnings. Fix some m_log declarations.

This commit is contained in:
Jeff Ames
2009-02-13 02:06:28 +00:00
parent 0362c69404
commit 95d53d48d4
16 changed files with 103 additions and 24 deletions

View File

@@ -837,7 +837,7 @@ namespace OpenSim.Region.Physics.OdePlugin
d.Vector3 pos = d.BodyGetPosition(Body);
float ground_height = _parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y);
float target_altitude = ground_height + 3.0f; // This is the min fly height
if(pos.Z < target_altitude)
if (pos.Z < target_altitude)
{
vec.Z += (target_altitude - pos.Z) * PID_P * 5.0f;
}