MakeTiles: tolerate undefined tiles
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@852 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
acce301d1d
commit
6b899d096d
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ public class MakeTiles
|
|||
for (int i = 0; i < NTILES; i++) {
|
||||
int tileNumber = SKIP_TILES + i;
|
||||
String rawSpec = recipe.getProperty(Integer.toString(tileNumber));
|
||||
assert rawSpec != null;
|
||||
if (rawSpec == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
TileSpec tileSpec = TileSpec.parse(tileNumber, rawSpec, recipe);
|
||||
FrameSpec ref = parseFrameSpec(tileSpec);
|
||||
|
|
Reference in a new issue