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 for light sources rendering the player invisible to enemies at certain ranges. #39230

Merged
merged 1 commit into from Apr 4, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 4, 2020

Summary

SUMMARY: Bugfixes "Fix for light sources rendering player invisible at certain ranges."

Purpose of change

Close #39166

Describe the solution

Change range = wanted_range; to range = MAX_VIEW_DISTANCE; to prevent rounding errors.

Describe alternatives you've considered

None.

Testing

Compiled with and without this change, this solves the issue.

Additional context

Thanks to kevin and anothersimulacrum for the help!

@kevingranade kevingranade merged commit 6393a6d into CleverRaven:master Apr 4, 2020
kevingranade pushed a commit to kevingranade/Cataclysm-DDA that referenced this pull request Apr 9, 2020
@ghost ghost deleted the light_source_invisibility_fix branch September 2, 2021 12:15
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.

Light sources cause enemys to be unable to see you at specific ranges.
2 participants