v0.7.1: fixed a rare edge-case in shadowcasting logic

This commit is contained in:
Evan Debenham 2018-11-15 19:37:51 -05:00
parent 7603fc030a
commit 054c20ef62

View File

@ -80,6 +80,9 @@ public final class ShadowCaster {
int x, int y, double lSlope, double rSlope,
int mX, int mY, boolean mXY){
//if we have negative space to traverse, just quit.
if (rSlope < lSlope) return;
boolean inBlocking = false;
int start, end;
int col;