summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-18 20:05:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-18 20:05:41 +0100
commit8b72c10418d282ef23799bfb1307dbc78051e3c9 (patch)
treeb5dec0d027e3dbdcd090b4dc8141b2eaae9c965d /core/src
parent2d93d8e9690f2fe14037bdca67fd74d58cc22912 (diff)
downloadRustAndDust-8b72c10418d282ef23799bfb1307dbc78051e3c9.zip
RustAndDust-8b72c10418d282ef23799bfb1307dbc78051e3c9.tar.gz
Map: leaveBoard does not reset Pawn but add it to activatedPawns
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 7682893..40d2dc3 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -193,7 +193,7 @@ public abstract class Map extends Board
public void leaveBoard(Pawn pawn)
{
removePawn(pawn);
- pawn.reset();
+ activatedPawns.add(pawn);
}
public int movePawn(Pawn pawn, Orientation o)