implemented removal of old routes when new routes are searched
This commit is contained in:
@@ -389,7 +389,7 @@ public abstract class Tile extends BaseClass implements Comparable<Tile>{
|
||||
@Override
|
||||
public void removeChild(BaseClass child) {
|
||||
routes.remove(child);
|
||||
shadows.remove(child);
|
||||
if (child instanceof Shadow) shadows.remove(child);
|
||||
if (child == train) train = null;
|
||||
if (child == route) route = null;
|
||||
plan.place(this);
|
||||
|
||||
Reference in New Issue
Block a user