LiveSplit / livesplit-core

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.
https://livesplit.org/
Apache License 2.0
209 stars 57 forks source link

Fix resume_game_time: don't jump to real_time #822

Closed AlexKnauth closed 3 months ago

AlexKnauth commented 3 months ago

Fixes a bug in resume_game_time that caused the game time to jump forward to the real time after a pause and resume. Now, the game time resumes from the time it was paused at, as it should.

The test included in this PR fails if active_attempt.game_time_paused_at = None; is moved to the beginning of the if body, but passes with the PR as it is.