aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorCaleb Mabry <caleb.mabry.15@cnu.edu>2022-03-26 17:02:14 -0400
committerCaleb Mabry <caleb.mabry.15@cnu.edu>2022-03-26 17:02:14 -0400
commit24f5b0970e87a879967bdb1d6b15b5a90b8148d8 (patch)
tree7308cb1d0551364eb8c56aeb9035ca1e972e4cf3 /webAO
parent7386f4cbec11b138e49d94a24f5a2368eb009994 (diff)
Only do it if match closing character
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.ts6
1 files changed, 4 insertions, 2 deletions
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);