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

Fix #120: Value range of transported_last_month_pct should be 0..100. #122

Merged
merged 1 commit into from May 8, 2020

Conversation

FLHerne
Copy link
Contributor

@FLHerne FLHerne commented May 8, 2020

This was overlooked when it was added in PR #84.

…0..100.

This was overlooked when it was added in PR OpenTTD#84.
Copy link
Member

@LordAro LordAro left a comment

Choose a reason for hiding this comment

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

I can't say I quite understand how value_mul_div clamps the value to 0..100 (I'd have to actually think about it), but it seems to mirror other usages, so I'll go with it

@FLHerne FLHerne merged commit 1c378e2 into OpenTTD:master May 8, 2020
@FLHerne FLHerne deleted the flh-fix-120 branch April 2, 2021 22:02
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.

None yet

2 participants