From 1c7268b49e3937a69d39d281e8077f4abc36c1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 11 May 2016 15:58:59 +0200 Subject: Ctrl: this.mode -> mode --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 0f608d6..46b7cce 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -414,7 +414,7 @@ public abstract class Ctrl implements Disposable hud.notifyAnimationsDone(); if (mode == Mode.LOADING) { - this.mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY); + mode = ((stateAfterAnimation == StateType.REPLAY) ? Mode.REPLAY : Mode.PLAY); if (mode == Mode.PLAY) { map.clear(); storeInitialState(); @@ -441,7 +441,7 @@ public abstract class Ctrl implements Disposable nextState = null; } hud.notify("Replay Done", Position.MIDDLE_CENTER); - this.mode = Mode.PLAY; + mode = Mode.PLAY; if (nextState != null) { setState(nextState); } else { @@ -461,7 +461,7 @@ public abstract class Ctrl implements Disposable if ((order.type == Order.OrderType.ENGAGE) && !order.replay) { game.ctrl.hud.engagementSummary(order.engagement); } - if (this.mode == Mode.PLAY) + if (mode == Mode.PLAY) storeGameOrders(); hud.update(); } @@ -616,7 +616,7 @@ public abstract class Ctrl implements Disposable if (depth > 1) RustAndDust.error(String.format("***!!!*** STATE DEPTH : %d", depth)); - if ((this.mode == Mode.PLAY) && (nextState == StateType.DEPLOYMENT)) { + if ((mode == Mode.PLAY) && (nextState == StateType.DEPLOYMENT)) { if (battle.isDeploymentDone()) hud.askEndDeployment(); } -- cgit v1.1-2-g2b99