diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 517afc8..3a004ed 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -310,7 +310,10 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS public void turnDone() { - objectives.forget(); + if (engagement != null) + throw new RuntimeException("engagement not cleared"); + if (objectives.modifiedCount() > 0) + throw new RuntimeException("objectives not cleared"); } public void actionDone() |