mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Don't show warning on ai -> ai messages
AI's can't receive chat messages. AI's sometimes send chat messages to other AI's. Defect introduced ine04506814a. Refs: #7466 (cherry picked from commitfde696a401) Signed-off-by: Itms <itms@wildfiregames.com>
This commit is contained in:
parent
d41356a9cc
commit
dcb8ef9b52
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class ChatMessageFormatPlayer
|
||||||
{
|
{
|
||||||
addresseeGUID = this.matchUsername(msg.text);
|
addresseeGUID = this.matchUsername(msg.text);
|
||||||
let addressee = g_PlayerAssignments[addresseeGUID];
|
let addressee = g_PlayerAssignments[addresseeGUID];
|
||||||
if (!addressee)
|
if (msg.player === undefined && !addressee)
|
||||||
{
|
{
|
||||||
warn("Couldn't find chat message receiver: " + msg.text);
|
warn("Couldn't find chat message receiver: " + msg.text);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue