Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset lastFrameTime when starting a new scenario #855

Merged
merged 2 commits into from
Nov 13, 2022
Merged

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Nov 12, 2022

Fixes #853.

Copy link
Member

@xsebek xsebek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -1053,3 +1054,4 @@ scenarioToUIState siPair u =
& uiREPL .~ initREPLState (u ^. uiREPL . replHistory)
& uiREPL . replHistory %~ restartREPLHistory
& scenarioRef ?~ siPair
& lastFrameTime .~ curTime
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes me think we should have something like a UIGameState that is reset on a new game. 🤔

It should not be possible to carry over things between games both in GameState and in UIState.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or perhaps it means lastFrameTime really ought to live in GameState (once we fix #516 and #689).

@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Nov 13, 2022
@mergify mergify bot merged commit e73a284 into main Nov 13, 2022
@mergify mergify bot deleted the fix/issue-853 branch November 13, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Newly initialized game tries to "catch up" after sitting in the menu for a while
2 participants