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

within_visual_range changed to reflect usage #27691

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

OrenAudeles
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Change within_visual_range function to reflect usage"

Purpose of change

Original function returns an integer and is only ever used as a component in boolean expression. Because of this sole pattern of use it makes sense to make it just a boolean result not reliant on a magic number signifying invalidity.

Describe the solution

Change return type from int to bool, modify conditionals reliant on the function.

@kevingranade kevingranade merged commit 8c5fe5d into CleverRaven:master Jan 18, 2019
@OrenAudeles OrenAudeles deleted the within_visual_range branch January 22, 2019 20:28
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