summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PossiblePaths.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
index 49a317f..b54835e 100644
--- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
+++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
@@ -235,12 +235,13 @@ public class PossiblePaths implements Disposable
return filteredPaths.get(i);
}
- public void setExit(Orientation exit)
+ public void setExit(Orientation o)
{
+ orientation = o;
Path path = getPath(0);
path.cost += 1;
path.tiles.add(to);
- to = board.getAdjTileAt(to, exit);
+ to = board.getAdjTileAt(to, o);
}
private void printToErr(String what, List<Path> paths)