diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-06-17 19:36:18 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-06-17 19:36:18 +0200 |
| commit | dfd0adff20c8a27a55d83c188e63fc59dd48a8d9 (patch) | |
| tree | 636fd31db10f1e9444480953d5b04f4b1294d631 /webAO | |
| parent | 28aa78ebe7df1f64959d879e7a140ff513fcfa82 (diff) | |
send CC if charid is -1
Diffstat (limited to 'webAO')
| -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 07a35db..c668612 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -555,7 +555,9 @@ class Client extends EventEmitter { * @param {number} character the character ID */ sendCharacter(character: number) { - if (this.chars[character].name) { this.sendServer(`CC#${this.playerID}#${character}#web#%`); } + if (this.chars[character].name || character === -1) { + this.sendServer(`CC#${this.playerID}#${character}#web#%`); + } } /** |
