Code Cleanup

This commit is contained in:
romanschenk37 2022-03-25 21:14:18 +01:00
parent e2c6b5cb49
commit 70a2179cce
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
(X:28, Y:22)
(X:31, Y:22)
(X:34, Y:22)
(X:37, Y:22)
(X:40, Y:22)
(X:43, Y:22)
(X:46, Y:21)

View File

@ -94,7 +94,7 @@ public class Game implements GameSpecification {
}
if(selectedFile != null){
try {
moveStrategy = new PathFollowerMoveStrategy(selectedFile, track.getCarPos(currentCarIndex));
moveStrategy = new PathFollowerMoveStrategy(selectedFile, track.getCarPos(i));
} catch (FileNotFoundException e) {
userInterface.printInformation("There is no Point-List implemented. Choose another Strategy!");
}