v0.7.1: fixed a rare edge-case in shadowcasting logic
This commit is contained in:
parent
7603fc030a
commit
054c20ef62
|
@ -80,6 +80,9 @@ public final class ShadowCaster {
|
||||||
int x, int y, double lSlope, double rSlope,
|
int x, int y, double lSlope, double rSlope,
|
||||||
int mX, int mY, boolean mXY){
|
int mX, int mY, boolean mXY){
|
||||||
|
|
||||||
|
//if we have negative space to traverse, just quit.
|
||||||
|
if (rSlope < lSlope) return;
|
||||||
|
|
||||||
boolean inBlocking = false;
|
boolean inBlocking = false;
|
||||||
int start, end;
|
int start, end;
|
||||||
int col;
|
int col;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user