Commit 6c3c0ba
authored
Fix FOV bottom-right bounds checking
Fixes issue #131.
The old bounds checking code used the inequalities `p.x < map.width - 1` and `p.y < map.height - 1`. This means that when p.x is 79, or p.y is 49, visibility is never checked, even though there actually are tiles in those locations. Removing the `- 1` part from each inequality allows these tiles to be checked.1 parent 48fe3d5 commit 6c3c0ba
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments