diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java index b245e0873..a3a741bc5 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java @@ -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;