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

Timer ends on skip #44

Closed
TimBeyer opened this issue Jan 22, 2022 · 2 comments
Closed

Timer ends on skip #44

TimBeyer opened this issue Jan 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@TimBeyer
Copy link

I was reviewing yesterday's release PR and came across these lines:

https://github.com/GreepTheSheep/openplanet-mx-random/blob/92509578cedb4d4450830a88345a84492295ba78/src/TimerUI.as#L122-L123

If I read this right, the skipSavedTime will always be set to (timer*60*1000) when the timer is started.

That would then mean that in

https://github.com/GreepTheSheep/openplanet-mx-random/blob/92509578cedb4d4450830a88345a84492295ba78/src/TimerUI.as#L320-L322

the endTime gets set to that same value, immediately making it smaller than startTime.

Thus this condition would trigger and the run would end:

https://github.com/GreepTheSheep/openplanet-mx-random/blob/92509578cedb4d4450830a88345a84492295ba78/src/TimerUI.as#L143-L154

I don't have access to TM right now to check it, but was wondering if I'm reading this wrong and maybe to see if some code comments could be added to document the purpose of skipSavedTime and the exact logic of it.

@TizianTitus
Copy link

you are probably right, lars skipped today and it ended.
clip: https://clips.twitch.tv/AgreeableKindFungusResidentSleeper-9RWon5iwkgFFetpe

@GreepTheSheep GreepTheSheep added bug Something isn't working RMC Timer & Medals labels Jan 22, 2022
@GreepTheSheep GreepTheSheep pinned this issue Jan 22, 2022
@GreepTheSheep GreepTheSheep changed the title Potential timer bug Timer ends on skip Jan 22, 2022
@GreepTheSheep
Copy link
Owner

I'm trying to do the addition on #38 but did not worked, so I let that aside and pushed with that. On my side, skipping will not end the timer but let as it is. So yeah, big priority on that rn

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

3 participants