summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-13 09:41:31 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-13 09:41:31 -0500
commit2817c83dc733fdded75f3121cb694eb5081b4a59 (patch)
treee95a29a13fd0885f9b54c5fadac939bfa1b3a3e3
parent12f0851006658b4a0c0c52d7959911808a1bd18f (diff)
downloadfourpuzzle-2817c83dc733fdded75f3121cb694eb5081b4a59.tar.gz
fourpuzzle-2817c83dc733fdded75f3121cb694eb5081b4a59.tar.bz2
fourpuzzle-2817c83dc733fdded75f3121cb694eb5081b4a59.zip
Engine: Fixed arrow delay bug
The arrow used to take a while to appear (in MessageWindow) because the message window iterated over all the text, instead of just the visible text.
-rw-r--r--src/com/fourisland/fourpuzzle/window/MessageWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/MessageWindow.java b/src/com/fourisland/fourpuzzle/window/MessageWindow.java index 3272fcc..fd9918c 100644 --- a/src/com/fourisland/fourpuzzle/window/MessageWindow.java +++ b/src/com/fourisland/fourpuzzle/window/MessageWindow.java
@@ -116,7 +116,7 @@ public class MessageWindow implements Renderable {
116 { 116 {
117 num = 0; 117 num = 0;
118 118
119 for (int i=0;i<messages.size();i++) 119 for (int i=0;i<Math.min(messages.size(),4);i++)
120 { 120 {
121 num += messages.get(i).length(); 121 num += messages.get(i).length();
122 } 122 }