From 4499685b090ca937d960180b391c8f214a106eba Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 29 Jan 2015 16:24:41 -0500 Subject: [PATCH] Merging 1.7.5 Source: mechanics changes --- .../shatteredpixeldungeon/mechanics/ShadowCaster.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java b/src/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java index 5189d2e38..9b3e8bdf1 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/mechanics/ShadowCaster.java @@ -91,7 +91,8 @@ public final class ShadowCaster { int pos = y * WIDTH + x; if (obs.isBlocked( a0 ) && obs.isBlocked( a1 ) && obs.isBlocked( a2 )) { - + + // Do nothing } else { fieldOfView[pos] = true; } @@ -124,7 +125,8 @@ public final class ShadowCaster { public void add( float o1, float o2 ) { if (length > limit && o1 <= a2[length-1]) { - + + // Merging several blocking cells a2[length-1] = o2; } else {