trackeditor: fix type 3 main track barrier attributes

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8268 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 592f352596149632dce409ea08ad5f0a81549209
Former-commit-id: 133bbaaf73884d617254d44a6aa5ba58d55dbaa1
This commit is contained in:
iobyte 2022-06-26 17:04:10 +00:00
parent 02e02d373a
commit 7de9af60c9
2 changed files with 10 additions and 2 deletions

View file

@ -524,8 +524,10 @@ public class XmlReader
part.setBorderWidth(getAttrNumValue(seg, sPart + "border width", "m"));
part.setBorderHeight(getAttrNumValue(seg, sPart + "border height", "m"));
part.setBorderSurface(getAttrStrValue(seg, sPart + "border surface"));
part.setBarrierWidth(0);
part.setBarrierHeight(0);
part.setBarrierStyle(getAttrStrValue(seg, sPart + "barrier style"));
part.setBarrierWidth(getAttrNumValue(seg, sPart + "barrier width", "m"));
part.setBarrierHeight(getAttrNumValue(seg, sPart + "barrier height", "m"));
part.setBarrierSurface(getAttrStrValue(seg, sPart + "barrier surface"));
}
private synchronized static void setSegments(Element mainTrack)

View file

@ -389,8 +389,14 @@ public class XmlWriter
addContent(side, sPart + "side type", part.getSideBankingType());
addContent(side, sPart + "border start width", "m", part.getBorderWidth());
addContent(side, sPart + "border start height", "m", part.getBorderHeight());
addContent(side, sPart + "border surface", part.getBorderSurface());
addContent(side, sPart + "border type", part.getBorderStyle());
addContent(side, sPart + "barrier start width", "m", part.getBarrierWidth());
addContent(side, sPart + "barrier start height", "m", part.getBarrierHeight());
addContent(side, sPart + "barrier surface", part.getBarrierSurface());
addContent(side, sPart + "barrier type", part.getBarrierStyle());
}
/**