summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-02-28 21:28:21 +0000
committerCharles Pigott <charlespigott@googlemail.com>2021-03-01 21:55:51 +0000
commit64686b53ff743d1cc6d8b522abd066bca1420a59 (patch)
treebc0e4fe69266b5446a4c0c84116cfe2ba7917baa
parentef5cea0e0698bde451efc88eacdcda77105659fb (diff)
downloadopenttd-64686b53ff743d1cc6d8b522abd066bca1420a59.tar.xz
Change: Zero out the gameloop timers when the game is paused
-rw-r--r--src/framerate_gui.cpp1
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());
}