diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-06-23 18:51:56 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-06-23 18:51:56 +0200 |
| commit | 3e8704e509f65bb5896e2efa4d49e8aaa5431799 (patch) | |
| tree | 86659e1ac80d04b0ff995e4646c3aaf6617a5ab6 /webAO/client.ts | |
| parent | 601631bd4c0ca01e55e40848f755adc264997a26 (diff) | |
fix sending spectator
Diffstat (limited to 'webAO/client.ts')
| -rw-r--r-- | webAO/client.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/client.ts b/webAO/client.ts index 1646ed9..54084b7 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -293,6 +293,7 @@ class Client extends EventEmitter { * @param {string} message the message to send */ sendServer(message: string) { + //console.log("C: "+message); mode === 'replay' ? this.sendSelf(message) : this.serv.send(message); } @@ -555,7 +556,8 @@ class Client extends EventEmitter { * @param {number} character the character ID */ sendCharacter(character: number) { - if (this.chars[character].name || character === -1) { + console.log("sending "+character); + if (character === -1 || this.chars[character].name) { this.sendServer(`CC#${this.playerID}#${character}#web#%`); } } |
