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

FoV algorithm uses player's previous location when determining objects #122

Open
pkuehne opened this issue Mar 19, 2021 · 1 comment
Open
Assignees
Labels
Milestone

Comments

@pkuehne
Copy link
Owner

pkuehne commented Mar 19, 2021

When moving, there is always a shadow behind the player. Yet when the player stands still (.) it disappears. It seems the LoS algorithm thinks the player is still standing in the old location and therefore thinks they're an obstacle and puts things behind them in shadow.

@pkuehne pkuehne added the bug label Mar 19, 2021
@pkuehne pkuehne added this to the Alpha 5 milestone Mar 19, 2021
@pkuehne pkuehne self-assigned this Mar 19, 2021
@pkuehne
Copy link
Owner Author

pkuehne commented Jan 30, 2024

This is fixed by changing fov_system.cpp#L45 to include && e != player

@pkuehne pkuehne changed the title LoS algorithm uses player's previous location when determining objects FoV algorithm uses player's previous location when determining objects Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant