summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map4Orders.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
index 05cc569..c30e6bd 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
@@ -287,8 +287,11 @@ public abstract class Map4Orders extends Map3Animations
break;
case ENTER:
claim(unit, move.from);
- if (order.replay)
- unit.setOnTile(move.from, Orientation.NORTH.r());
+ if (order.replay) {
+ Orientation entry = findBestEntry(unit, move.from, unit.entryZone.allowedMoves);
+ // Hex from = (Hex) getAdjTileAt(move.from, entry);
+ unit.setOnTile(move.from, entry.opposite().r());
+ }
playMoveSound(unit);
moveUnit(unit, move, this, order.replay);
break;