From 8df4f53c72d6f011862ac7eab51538ad81f55b86 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 24 May 2014 21:37:12 +0200 Subject: Fix timer not cancelling on game load --- src/esieequest/view/app/UserInterface.java | 3 +++ src/esieequest/view/web/WebInterface.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/esieequest/view/app/UserInterface.java b/src/esieequest/view/app/UserInterface.java index b00673c..6e2cb08 100644 --- a/src/esieequest/view/app/UserInterface.java +++ b/src/esieequest/view/app/UserInterface.java @@ -641,6 +641,8 @@ abstract class UserInterface implements Viewable, ActionListener { @Override public void playScene(final Scene scene) { + this.skipScene(); + this.disableInput(); this.setQuestLabel(scene.getTitle()); @@ -687,6 +689,7 @@ abstract class UserInterface implements Viewable, ActionListener { } catch (final IOException e) { e.printStackTrace(); } + this.skipScene(); return serialisedGame; } diff --git a/src/esieequest/view/web/WebInterface.java b/src/esieequest/view/web/WebInterface.java index e749c1f..82264fa 100644 --- a/src/esieequest/view/web/WebInterface.java +++ b/src/esieequest/view/web/WebInterface.java @@ -436,6 +436,8 @@ class WebInterface extends Composite implements Viewable { @Override public void playScene(final Scene scene) { + this.skipScene(); + this.disableInput(); this.setQuestLabel(scene.getTitle()); @@ -470,6 +472,7 @@ class WebInterface extends Composite implements Viewable { if (this.storage == null) { return null; } + this.skipScene(); return this.storage.getItem(path); } -- cgit v1.2.3