We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b03eef commit 83db507Copy full SHA for 83db507
Managers/TimerMan.h
@@ -46,7 +46,7 @@ namespace RTE {
46
/// This also clears the accumulator, to avoid the case where the sim may update while paused when behind schedule.
47
/// </summary>
48
/// <param name="pause">Whether the sim should be paused or not.</param>
49
- void PauseSim(bool pause = false) { m_SimPaused = pause; m_SimAccumulator = 0.0F; }
+ void PauseSim(bool pause = false) { m_SimPaused = pause; if(pause) m_SimAccumulator = 0.0F; }
50
51
/// <summary>
52
/// Tells whether there is enough sim time accumulated to do at least one physics update.
0 commit comments