Merging 1.7.5 Source: mechanics changes

This commit is contained in:
Evan Debenham 2015-01-29 16:24:41 -05:00
parent d6bcece8af
commit 4499685b09

View File

@ -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 {