diff options
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/menu/ScenariosMenu.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java b/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java index d701a50..40ec133 100644 --- a/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java +++ b/core/src/ch/asynk/tankontank/menu/ScenariosMenu.java @@ -88,7 +88,10 @@ public class ScenariosMenu extends Patch } else { for (int i = 0; i <battleLabels.length; i++) { if (battleLabels[i].hit(x, y)) { - game.config.battle = game.factory.battles[i]; + if (game.config.battle == game.factory.battles[i]) + game.config.battle = null; + else + game.config.battle = game.factory.battles[i]; } } } |