From 6b188d5f1415c69cc62fcbd853802f279fcd690d Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 16 Feb 2009 12:25:36 -0500 Subject: Engine: Added delay to MessageWindow Previously, if a conversation was going on and a specific message was short, the user simply still holding down the action key would trigger the next message and it wouldn't be seen. To fix this, the KeyInput is reset every tick during a message. --- src/com/fourisland/fourpuzzle/window/MessageWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/fourisland/fourpuzzle/window/MessageWindow.java b/src/com/fourisland/fourpuzzle/window/MessageWindow.java index ca916a3..413805d 100644 --- a/src/com/fourisland/fourpuzzle/window/MessageWindow.java +++ b/src/com/fourisland/fourpuzzle/window/MessageWindow.java @@ -68,9 +68,11 @@ public class MessageWindow implements Renderable { if ((key.getKey() == KeyEvent.VK_ENTER) || (key.getKey() == KeyEvent.VK_SPACE)) { if (mw.pushEnter()) - { + { cdl.countDown(); } + + key.letGo(); } } }; -- cgit 1.4.1