From 24f5b0970e87a879967bdb1d6b15b5a90b8148d8 Mon Sep 17 00:00:00 2001 From: Caleb Mabry Date: Sat, 26 Mar 2022 17:02:14 -0400 Subject: Only do it if match closing character --- webAO/client.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'webAO/client.ts') diff --git a/webAO/client.ts b/webAO/client.ts index 9c1598d..ac34334 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -2314,8 +2314,10 @@ class Viewport { if (this.chatmsg.speed > 0) { this.chatmsg.speed -= 20 } - } else if(currentCharacter === '}' && this.chatmsg.speed < MAX_SLOW_CHATSPEED) { - this.chatmsg.speed += 20 + } else if(currentCharacter === '}') { + if(this.chatmsg.speed < MAX_SLOW_CHATSPEED) { + this.chatmsg.speed += 20 + } } else { // No longer at a speed character this.textnow = this.chatmsg.content.substring(0, i); -- cgit