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:
parent
685ccd22d5
commit
1026fdf34f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue