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

Don't set period number to 2 after Time to Derby #123

Merged
merged 1 commit into from
Jul 27, 2018

Conversation

frank-weinberg
Copy link
Contributor

No description provided.

@@ -595,7 +595,7 @@ public void scoreBoardChange(ScoreBoardEvent event) {
//If less than one minute of intermission is left and there is another period,
// start the next period. Otherwise extend the previous period.
requestBatchStart();
pc.changeNumber(1);
pc.setNumber(ic.getNumber()+1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any known issues with ic Number being wrong? I don't think we've ever depended on it before.

Do your proposed unittests already cover this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On intermission start ic Number is set to period number. And the display ("Time to Derby", "Intermission", "Unofficial Score"/"Final") is based on intermission number. So a wrong intermission number would be very visible.

And the tests in #122 cover the period number after intermission ends after period 1 and 2. I just didn't check it for Intermission end before period 1, but that's easy to add..

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, let's add that test over there then to keep things straight. I doubt this is all the cause of our problems, but it should fix some ones caused by operator error.

@brian-brazil brian-brazil merged commit 150e05a into rollerderby:dev Jul 27, 2018
AdamSmasherDerby pushed a commit to AdamSmasherDerby/scoreboard that referenced this pull request Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants