* Removed a debug message I left in there

* Added a few more comments.
afrisby
Teravus Ovares 2007-12-26 01:06:18 +00:00
parent e008c3e4a9
commit 98f4a568ad
1 changed files with 7 additions and 1 deletions

View File

@ -533,7 +533,13 @@ namespace OpenSim.Region.Environment.Scenes
} }
public void StopFlying() public void StopFlying()
{ {
MainLog.Instance.Verbose("AGENT","VEL:" + Velocity.ToString()); // It turns out to get the agent to stop flying, you have to feed it stop flying velocities
// and send a full object update.
// There's no message to send the client to tell it to stop flying
// Add 1/2 the avatar's height to it's position so it doesn't shoot into the air
// when the avatar stands up
AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight/2)); AbsolutePosition = AbsolutePosition + new LLVector3(0, 0, (m_avHeight/2));
SendFullUpdateToAllClients(); SendFullUpdateToAllClients();
} }