Permalink
Browse files

Fix exception in UP-DOWN image rendering

  • Loading branch information...
DarthJDG committed Dec 9, 2012
1 parent 2831be7 commit 4c350dc413fee4252f8c98ff79115d5db76f22e3
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/org/openprince/dat/ImageResource.java
@@ -226,7 +226,9 @@ public void renderToSheet(SpriteSheet sheet, PaletteResource pal, int sx,
if (bits == 0) {
pos++;
val = decompressed.get(pos) & 0xff;
if(pos < decompressed.size()) {
val = decompressed.get(pos) & 0xff;
}
bits = 8;
y++;
xoffs = 8 / bpp - 1;
@@ -235,9 +237,7 @@ public void renderToSheet(SpriteSheet sheet, PaletteResource pal, int sx,
}
}
} catch (Exception e) {
System.out.println("Exception: " + e.getMessage());
System.out.println("Exception (" + id + "): " + e.getMessage());
}
System.out.println("Allocated at " + sx + ", " + sy);
}
}

0 comments on commit 4c350dc

Please sign in to comment.