summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-12 23:15:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-12 23:15:35 +0100
commit10a1b41a728f56b3846e708488b8dcef03844eb3 (patch)
tree200ec3845f7b0b65f1867c1d765f568f2c84fe45 /core
parent7b19ad6c340a292d6cd27c5710baa39d0cbb0815 (diff)
downloadRustAndDust-10a1b41a728f56b3846e708488b8dcef03844eb3.zip
RustAndDust-10a1b41a728f56b3846e708488b8dcef03844eb3.tar.gz
BattleHeadToHead: fix victory condition
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java2
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;