make-tiles: allow tile specification to be empty

this fixes a build-crash bug if a tile is not given any images

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@886 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-12-02 01:44:52 +00:00
parent 685ccd22d5
commit 1026fdf34f

View file

@ -59,6 +59,11 @@ public class MakeTiles
TileSpec tileSpec = TileSpec.parse(tileNumber, rawSpec, recipe);
FrameSpec ref = parseFrameSpec(tileSpec);
if (ref == null) {
// tile is defined, but it has no images
continue;
}
drawTo(ref, gr, 0, TILE_SIZE*i);
}