diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java index c90ae81..49189f2 100644 --- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java +++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java @@ -73,7 +73,7 @@ public class UnitDock extends Bg @Override public boolean hit(float x, float y) { - if (scaledRect.contains(x, y)) { + if (visible && scaledRect.contains(x, y)) { int i = (int) ((scaledRect.y + scaledRect.height - y) / (scaledRect.height / pawns.size())); selectedPawn = pawns.get(i); return true; |