summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/UnitDock.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
index 9a7811e..c249c64 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
@@ -158,9 +158,11 @@ public class UnitDock extends Bg implements Animation
n = 0;
return false;
}
- if (count == n) return true;
- n = count;
+ if ((count == n) && (units == ctrl.player.reinforcement))
+ return true;
+
+ n = count;
units = ctrl.player.reinforcement;
rect.width = units.get(0).getWidth() + (2 * padding);
rect.height = ((units.get(0).getHeight() * n) + ((n + 1) * padding));