Skip to content

Commit

Permalink
Merge branch 'core'
Browse files Browse the repository at this point in the history
  • Loading branch information
dolda2000 committed Jul 31, 2014
2 parents 926e03b + 5a13ca8 commit 80a6b90
Show file tree
Hide file tree
Showing 34 changed files with 1,596 additions and 1,092 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-linux-amd64.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-linux-armv6.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-linux-armv6hf.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-linux-i586.jar
Binary file not shown.
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-solaris-amd64.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-solaris-i586.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-windows-amd64.jar
Binary file not shown.
Binary file added lib/jogl-natives/jogl-natives-windows-i586.jar
Binary file not shown.
4 changes: 4 additions & 0 deletions src/haven/GLState.java
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,10 @@ public void prep(Buffer buf) {
for(GLState st : states)
st.prep(buf);
}

public String toString() {
return("composed(" + Arrays.asList(states) + ")");
}
}

public static GLState compose(GLState... states) {
Expand Down
6 changes: 6 additions & 0 deletions src/haven/IDSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,10 @@ public T intern(T ob) {
}
}
}

public int size() {
synchronized(bk) {
return(bk.size());
}
}
}
6 changes: 3 additions & 3 deletions src/haven/LocalMiniMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.*;
import haven.resutil.RidgeTile;
import haven.resutil.Ridges;

public class LocalMiniMap extends Widget {
public final MapView mv;
Expand Down Expand Up @@ -98,8 +98,8 @@ public BufferedImage drawmap(Coord ul, Coord sz) {
for(c.x = 1; c.x < sz.x - 1; c.x++) {
int t = m.gettile(ul.add(c));
Tiler tl = m.tiler(t);
if(tl instanceof RidgeTile) {
if(((RidgeTile)tl).ridgep(m, ul.add(c))) {
if(tl instanceof Ridges.RidgeTile) {
if(Ridges.brokenp(m, ul.add(c))) {
for(int y = c.y; y <= c.y + 1; y++) {
for(int x = c.x; x <= c.x + 1; x++) {
int rgb = buf.getRGB(x, y);
Expand Down
Loading

0 comments on commit 80a6b90

Please sign in to comment.