Open andrei8l opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.
I can /confirm this is still happening on ec7537a . Let's keep it open.
Here's another way to reproduce the bug.
edit: I screwed the code while digging for this bug lol. That's actually my fault.
edit 2: I was going to explain this scenario, but screwed up. At least I could post the original case here, using save file provided in #72508. After giving myself debug night vision and walking around, here you can see some of the pillar's shadows get truncated by the railroad, but the others' are not.
I believe it's because the railroad is considered outside
and the concrete floors are not. Thus they have different transparency values when the weather is foggy. This, in combination with shadowcasting's different sweep directions ( shown in the picture ), led to this bug.
Describe the bug
Shadowcasting appears to pass through solid obstacles when the weather's sight_penalty is not 1.0.
Attach save file
Maple Glen-trimmed.tar.gz
Steps to reproduce
Expected behavior
Zarro boogs.
Screenshots
There must be a floor to the south of the wall for this bug to occur in this test case
Correct shadowcasting, for reference
![Screenshot from 2023-04-20 14-05-26](https://user-images.githubusercontent.com/68240139/233348686-0bae14db-1dd8-4c5d-a0c0-b48c47f7c51a.png)Versions and configuration
Additional context
Can be reproduced with 0.F so it's not a recent bug.