summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-05 10:40:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-05 10:40:51 +0100
commit802c84833d1d510d45f0bc9a03049e199d2159ce (patch)
tree558aeff5b629e8ae6f906c06121d30a6a40a2d4f /core/src/ch/asynk/tankontank/game
parent9d5acbbd7b934cd77800530e9e13727bbe1f3642 (diff)
downloadRustAndDust-802c84833d1d510d45f0bc9a03049e199d2159ce.zip
RustAndDust-802c84833d1d510d45f0bc9a03049e199d2159ce.tar.gz
StatePromote: Unit p -> Unit unit
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StatePromote.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StatePromote.java b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
index 5a40f02..28fe2b5 100644
--- a/core/src/ch/asynk/tankontank/game/states/StatePromote.java
+++ b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
@@ -8,10 +8,10 @@ public class StatePromote extends StateCommon
public void enter(boolean flag)
{
ctrl.hud.hide();
- Unit p = ctrl.player.promote(selectedUnit);
- if (p != null) {
- ctrl.hud.notify(p + " has been promoted");
- map.promote(selectedUnit, p);
+ Unit unit = ctrl.player.promote(selectedUnit);
+ if (unit != null) {
+ ctrl.hud.notify(unit + " has been promoted");
+ map.promote(selectedUnit, unit);
}
done();
}