1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 10:59:12 +00:00

Change: Zero out the gameloop timers when the game is paused

This commit is contained in:
Charles Pigott
2021-02-28 21:28:21 +00:00
parent ef5cea0e06
commit 64686b53ff

View File

@@ -274,6 +274,7 @@ void PerformanceMeasurer::SetExpectedRate(double rate)
*/
/* static */ void PerformanceMeasurer::Paused(PerformanceElement elem)
{
PerformanceMeasurer::SetInactive(elem);
_pf_data[elem].AddPause(GetPerformanceTimer());
}