Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 83db507

Browse files
committed
don't reset simaccumulator if not pausing
1 parent 8b03eef commit 83db507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Managers/TimerMan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace RTE {
4646
/// This also clears the accumulator, to avoid the case where the sim may update while paused when behind schedule.
4747
/// </summary>
4848
/// <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; }
49+
void PauseSim(bool pause = false) { m_SimPaused = pause; if(pause) m_SimAccumulator = 0.0F; }
5050

5151
/// <summary>
5252
/// Tells whether there is enough sim time accumulated to do at least one physics update.

0 commit comments

Comments
 (0)