diff --git a/src/java/com/threerings/media/tile/bundle/TileSetBundle.java b/src/java/com/threerings/media/tile/bundle/TileSetBundle.java index c4ad097c..e8e5382c 100644 --- a/src/java/com/threerings/media/tile/bundle/TileSetBundle.java +++ b/src/java/com/threerings/media/tile/bundle/TileSetBundle.java @@ -94,11 +94,7 @@ public class TileSetBundle extends HashIntMap public BufferedImage loadImage (String path) throws IOException { - if (path.endsWith(FastImageIO.FILE_SUFFIX)) { - return _bundle.getImageResource(path, true); - } else { - return _bundle.getImageResource(path, false); - } + return _bundle.getImageResource(path, path.endsWith(FastImageIO.FILE_SUFFIX)); } // custom serialization process diff --git a/src/java/com/threerings/resource/ResourceManager.java b/src/java/com/threerings/resource/ResourceManager.java index 49164a3e..075c03f8 100644 --- a/src/java/com/threerings/resource/ResourceManager.java +++ b/src/java/com/threerings/resource/ResourceManager.java @@ -505,11 +505,7 @@ public class ResourceManager // fallback next to an unpacked resource file File file = getResourceFile(path); if (file != null && file.exists()) { - if (path.endsWith(FastImageIO.FILE_SUFFIX)) { - return loadImage(file, true); - } else { - return loadImage(file, false); - } + return loadImage(file, path.endsWith(FastImageIO.FILE_SUFFIX)); } // first try a locale-specific file