improvement: manually-defined actions are now preserverd when plan is analyzed for new routes

This commit is contained in:
Stephan Richter
2020-11-06 11:15:32 +01:00
parent ad8375e7f4
commit 5e088deda2
11 changed files with 78 additions and 25 deletions

View File

@@ -335,7 +335,7 @@ public class Train extends BaseClass implements Comparable<Train> {
}
public Tag link(String tagClass) {
return link(tagClass, Map.of(REALM, REALM_TRAIN,ID,id,ACTION,ACTION_PROPS),name());
return link(tagClass, Map.of(REALM, REALM_TRAIN,ID,id,ACTION,ACTION_PROPS),name()+NBSP);
}
public static TreeSet<Train> list() {
@@ -539,7 +539,6 @@ public class Train extends BaseClass implements Comparable<Train> {
}
public void setSpeed(int v) {
LOG.debug("Setting speed to {} kmh.",v);
for (Locomotive loco : locos) loco.setSpeed(v);
this.speed = v;
}