diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-02-28 21:28:21 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-03-01 21:55:51 +0000 |
commit | 64686b53ff743d1cc6d8b522abd066bca1420a59 (patch) | |
tree | bc0e4fe69266b5446a4c0c84116cfe2ba7917baa /src | |
parent | ef5cea0e0698bde451efc88eacdcda77105659fb (diff) | |
download | openttd-64686b53ff743d1cc6d8b522abd066bca1420a59.tar.xz |
Change: Zero out the gameloop timers when the game is paused
Diffstat (limited to 'src')
-rw-r--r-- | src/framerate_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/framerate_gui.cpp b/src/framerate_gui.cpp index 9bd5a2e8e..9ac78dc68 100644 --- a/src/framerate_gui.cpp +++ b/src/framerate_gui.cpp @@ -274,6 +274,7 @@ void PerformanceMeasurer::SetExpectedRate(double rate) */ /* static */ void PerformanceMeasurer::Paused(PerformanceElement elem) { + PerformanceMeasurer::SetInactive(elem); _pf_data[elem].AddPause(GetPerformanceTimer()); } |