cleaned up formatting:
- removed trailing whitespace - changed all leading whitespace to tabs - removed IDE created author comments
This commit is contained in:
@@ -65,8 +65,8 @@ public class FogOfWar extends Image {
|
||||
|
||||
texture( new FogTexture() );
|
||||
|
||||
scale.set(
|
||||
DungeonTilemap.SIZE,
|
||||
scale.set(
|
||||
DungeonTilemap.SIZE,
|
||||
DungeonTilemap.SIZE );
|
||||
|
||||
x = y = -size / 2;
|
||||
@@ -84,16 +84,16 @@ public class FogOfWar extends Image {
|
||||
for (int j=1; j < pWidth - 1; j++) {
|
||||
pos++;
|
||||
int c = INVISIBLE;
|
||||
if (visible[pos] && visible[pos - (pWidth - 1)] &&
|
||||
if (visible[pos] && visible[pos - (pWidth - 1)] &&
|
||||
visible[pos - 1] && visible[pos - (pWidth - 1) - 1]) {
|
||||
c = VISIBLE;
|
||||
} else
|
||||
if (visited[pos] && visited[pos - (pWidth - 1)] &&
|
||||
} else
|
||||
if (visited[pos] && visited[pos - (pWidth - 1)] &&
|
||||
visited[pos - 1] && visited[pos - (pWidth - 1) - 1]) {
|
||||
c = VISITED;
|
||||
}
|
||||
else
|
||||
if (mapped[pos] && mapped[pos - (pWidth - 1)] &&
|
||||
else
|
||||
if (mapped[pos] && mapped[pos - (pWidth - 1)] &&
|
||||
mapped[pos - 1] && mapped[pos - (pWidth - 1) - 1]) {
|
||||
c = MAPPED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user