aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-04-06 23:05:57 +0200
committerstonedDiscord <Tukz@gmx.de>2022-04-06 23:05:57 +0200
commit945dc093c92dda971cc1d769c36fd6b3eb3a4236 (patch)
treee2ed117d6b6f08096b427074bda3157116920936 /webAO
parent3e27e18149f9b89122edb639d9c00c78d270e4cd (diff)
text speed chars were swapped
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
}