From 802c84833d1d510d45f0bc9a03049e199d2159ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 5 Nov 2014 10:40:51 +0100 Subject: StatePromote: Unit p -> Unit unit --- core/src/ch/asynk/tankontank/game/states/StatePromote.java | 8 ++++---- 1 file 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(); } -- cgit v1.1-2-g2b99