minor bugfix. next step: implementing the preserveNextRoute action.

Must work in the following conditions:
- called from route.setupActions
- called from route.startActions
- called from route.contactActions
- called from autopilot after reaching route.endBlock
This commit is contained in:
Stephan Richter
2021-03-14 20:07:36 +01:00
parent 3c53bd192f
commit fd254db358
3 changed files with 6 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ public class PreserveRoute extends Action {
return false; // train is expected to wait in next block.
}
train.reserveNext();
train.reserveRouteAfter(route);
return true;
}
}