summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-14 16:40:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-14 16:40:05 +0100
commit0c05da84f8b1bb250dfcac810cfd639986506cef (patch)
tree5a4301351a1e430f27e99edfcbfe8ddb06cb9d1c /core
parent324e17f72845c302533703170cadc0921732190f (diff)
downloadRustAndDust-0c05da84f8b1bb250dfcac810cfd639986506cef.zip
RustAndDust-0c05da84f8b1bb250dfcac810cfd639986506cef.tar.gz
Unit: revertLastMove: restore mpLeft = mp
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index dd68b20..7ff3720 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -231,6 +231,7 @@ public class Unit extends HeadedPawn
public void revertLastMove()
{
hasMoved = false;
+ mpLeft = mp;
}