diff --git a/src/edu/kit/informatik/model/Train.java b/src/edu/kit/informatik/model/Train.java index eae2eed..5ca4fec 100644 --- a/src/edu/kit/informatik/model/Train.java +++ b/src/edu/kit/informatik/model/Train.java @@ -185,7 +185,7 @@ public final class Train { } } this.position = positions; - this.direction = direction; + this.direction = rawDirection.normalized(); this.occupiedRails = occupiedRailsSet; return true;