diff options
| author | Caleb Mabry <caleb.mabry.15@cnu.edu> | 2022-03-26 17:02:14 -0400 |
|---|---|---|
| committer | Caleb Mabry <caleb.mabry.15@cnu.edu> | 2022-03-26 17:02:14 -0400 |
| commit | 24f5b0970e87a879967bdb1d6b15b5a90b8148d8 (patch) | |
| tree | 7308cb1d0551364eb8c56aeb9035ca1e972e4cf3 /webAO/client.ts | |
| parent | 7386f4cbec11b138e49d94a24f5a2368eb009994 (diff) | |
Only do it if match closing character
Diffstat (limited to 'webAO/client.ts')
| -rw-r--r-- | webAO/client.ts | 6 |
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); |
