graphics: tiles.dat: allow spaces before pipes

this allows layer names to be more nicely lined up

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@708 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-06-26 13:13:50 +00:00
parent d8444ff2e4
commit cae33311b3
2 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@ public class MakeTiles
if (l.startsWith("#")) {
continue;
}
String[] parts = l.split("\\s+");
String[] parts = l.split("\\s+", 2);
String tileName = parts[0];
String tileImage = parts[1];
tileData.put(tileName, tileImage);
@ -89,7 +89,7 @@ public class MakeTiles
{
ImageSpec result = null;
for (String layerStr : chain.split("\\|")) {
for (String layerStr : chain.split("\\s*\\|")) {
ImageSpec rv = new ImageSpec();
rv.background = result;