Patch: Fix a bug in LAND animation when the TickCount wraps into negative numbers

by Mic Bowman
Signed-off-by: Teravus Ovares (Dan Olivares) <teravus@gmail.com>
0.6.8-post-fixes
OpenSim Master 2009-11-25 10:55:33 -08:00 committed by Teravus Ovares (Dan Olivares)
parent a642968fd5
commit a3755d831d
1 changed files with 1 additions and 2 deletions

View File

@ -247,8 +247,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
else if (m_movementAnimation == "LAND") else if (m_movementAnimation == "LAND")
{ {
float landElapsed = (float)(Environment.TickCount - m_animTickFall) / 1000f; float landElapsed = (float)(Environment.TickCount - m_animTickFall) / 1000f;
if ((m_animTickFall != 0) && (landElapsed <= FALL_DELAY))
if (landElapsed <= FALL_DELAY)
return "LAND"; return "LAND";
} }