working on route actions:
start block of route should only be freed, if corresponding action is fired. however, train should not be available from previous start block after route has finished.
This commit is contained in:
@@ -2,11 +2,14 @@ package de.srsoftware.web4rail.actions;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import de.srsoftware.web4rail.Route;
|
||||
|
||||
public class FinishRoute extends Action {
|
||||
|
||||
@Override
|
||||
public boolean fire(Context context) throws IOException {
|
||||
context.route.finish();
|
||||
Route route = context.route;
|
||||
if (route != null) route.finish();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user