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

Restarting application while race is running causes lapTime to reset #20

Open
BeMain opened this issue Apr 6, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@BeMain
Copy link
Owner

BeMain commented Apr 6, 2022

Due to currentLap being initialized with a lapTime of 0 when application starts.
CarReference should instead, in the case where currentRace is already running, determine time since last lap and set currentLap.lapTime to that.

@BeMain BeMain added the bug Something isn't working label Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant