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 #240: Incomplete read only checks #242

Merged
merged 3 commits into from Oct 10, 2021
Merged

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Oct 10, 2021

If any of the fixes is missing, ternary_optimisation is replaced on the fly with return 5; and proc_call_optimisation is ignored.

@andythenorth
Copy link
Contributor

Works for me with FIRS test case.

Code looks fine, not that my reviewing abilities are the best.

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.

Seems fine, though I predict the issue recurring in future. Would be "nice"(?) to do some magic and automatically test all class members that have the is_read_only method attached to them

@glx22 glx22 merged commit bd6b34e into OpenTTD:master Oct 10, 2021
@glx22 glx22 deleted the read_only branch October 10, 2021 17:42
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

3 participants