MakeTiles: fix a couple bugs in code for loading animation

This commit is contained in:
Jason Long 2014-06-19 14:18:52 -04:00
parent 41c8d68717
commit 372c1a6519

View file

@ -314,7 +314,7 @@ public class MakeTiles
static TileImage parseFrameSpec(String rawSpec)
throws IOException
{
String [] parts = rawSpec.split("|");
String [] parts = rawSpec.split("\\|");
for (int i = 0; i < parts.length; i++) {
parts[i] = parts[i].trim();
}
@ -345,7 +345,7 @@ public class MakeTiles
throws IOException
{
String [] parts = layerStr.split("@", 2);
TileImage img = loadImage(parts[0]);
TileImage img = loadAnimation(parts[0]);
if (parts.length >= 2) {
TileImageSprite sprite = new TileImageSprite();