diff options
author | UbitUmarov | 2012-10-28 14:39:04 +0000 |
---|---|---|
committer | UbitUmarov | 2012-10-28 14:39:04 +0000 |
commit | db7f4074b51f6c8e6e329cd67fb1e711f2272408 (patch) | |
tree | 07f3e04d748a1f95b2326a8f0c2afb57def0422c /OpenSim/Region/Physics | |
parent | fix ode timing (diff) | |
download | opensim-SC-db7f4074b51f6c8e6e329cd67fb1e711f2272408.zip opensim-SC-db7f4074b51f6c8e6e329cd67fb1e711f2272408.tar.gz opensim-SC-db7f4074b51f6c8e6e329cd67fb1e711f2272408.tar.bz2 opensim-SC-db7f4074b51f6c8e6e329cd67fb1e711f2272408.tar.xz |
revert last change
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index eb0a514..54bc29f 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | |||
@@ -1689,10 +1689,10 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1689 | /// <returns></returns> | 1689 | /// <returns></returns> |
1690 | public override float Simulate(float timeStep) | 1690 | public override float Simulate(float timeStep) |
1691 | { | 1691 | { |
1692 | |||
1693 | DateTime now = DateTime.UtcNow; | 1692 | DateTime now = DateTime.UtcNow; |
1694 | TimeSpan timedif = now - m_lastframe; | 1693 | TimeSpan timedif = now - m_lastframe; |
1695 | timeStep = (float)timedif.TotalSeconds; | 1694 | timeStep = (float)timedif.TotalSeconds; |
1695 | m_lastframe = now; | ||
1696 | 1696 | ||
1697 | // acumulate time so we can reduce error | 1697 | // acumulate time so we can reduce error |
1698 | step_time += timeStep; | 1698 | step_time += timeStep; |
@@ -1703,7 +1703,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1703 | if (framecount < 0) | 1703 | if (framecount < 0) |
1704 | framecount = 0; | 1704 | framecount = 0; |
1705 | 1705 | ||
1706 | m_lastframe = now; | ||
1707 | 1706 | ||
1708 | framecount++; | 1707 | framecount++; |
1709 | 1708 | ||