aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 10cafcd..d1a11a3 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -2332,11 +2332,11 @@ class Viewport {
const MAX_SLOW_CHATSPEED = 120
for(let i = this.textnow.length; i < this.chatmsg.content.length; i++) {
const currentCharacter = this.chatmsg.parsed[i - 1].innerHTML
- if (currentCharacter === '{') {
+ if (currentCharacter === '}') {
if (this.chatmsg.speed > 0) {
this.chatmsg.speed -= 20
}
- } else if(currentCharacter === '}') {
+ } else if(currentCharacter === '{') {
if(this.chatmsg.speed < MAX_SLOW_CHATSPEED) {
this.chatmsg.speed += 20
}