From 8811dcf228e487cd6850e9e435eab0c4ac68a7b1 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Wed, 19 Feb 2020 18:40:43 +0100 Subject: [PATCH] Fix placing trains --- src/edu/kit/informatik/model/Train.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;