diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 23:15:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 23:15:35 +0100 |
commit | 10a1b41a728f56b3846e708488b8dcef03844eb3 (patch) | |
tree | 200ec3845f7b0b65f1867c1d765f568f2c84fe45 /core/src/ch/asynk/tankontank | |
parent | 7b19ad6c340a292d6cd27c5710baa39d0cbb0815 (diff) | |
download | RustAndDust-10a1b41a728f56b3846e708488b8dcef03844eb3.zip RustAndDust-10a1b41a728f56b3846e708488b8dcef03844eb3.tar.gz |
BattleHeadToHead: fix victory condition
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java index e8c6850..fefc1d2 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java @@ -25,7 +25,7 @@ public class BattleHeadToHead extends BattleCommon public Player checkVictory(Ctrl ctrl) { if (ctrl.opponent.unitsLeft() == 0) - return null; + return ctrl.player; if ((ctrl.player.getTurn() < 10) || (ctrl.opponent.getTurn() < 10)) return null; |