Skip to content

Commit

Permalink
Put the tile's id into the name.
Browse files Browse the repository at this point in the history
  • Loading branch information
egofree71 committed Dec 4, 2014
1 parent d2b3ae8 commit c6f7a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions org/lateralgm/file/GMXFileWriter.java
Expand Up @@ -1690,8 +1690,9 @@ private static void iterateRooms(ProjectFileContext c, ResNode root, Element nod
tileelement.setAttribute("h",Integer.toString((Integer) props.get(PTile.HEIGHT)));
tileelement.setAttribute("xo",Integer.toString((Integer) props.get(PTile.BG_X)));
tileelement.setAttribute("yo",Integer.toString((Integer) props.get(PTile.BG_Y)));
tileelement.setAttribute("id",Integer.toString((Integer) props.get(PTile.ID)));
tileelement.setAttribute("name","inst_");
String tileId = Integer.toString((Integer) props.get(PTile.ID));
tileelement.setAttribute("id",tileId);
tileelement.setAttribute("name","inst_" + tileId);
tileelement.setAttribute("depth",Integer.toString((Integer) props.get(PTile.DEPTH)));
tileelement.setAttribute("locked",boolToString((Boolean) props.get(PTile.LOCKED)));
Point2D scale = tile.getScale();
Expand Down

0 comments on commit c6f7a9d

Please sign in to comment.