Skip to content

Commit

Permalink
Messages: use WriteAUXHOSTMessage, not WriteExternalMessage
Browse files Browse the repository at this point in the history
This will cause the messages to come out in the correct order with respect
to host-generated messages.  In particular, mine laying from starbases
appears before mine sweeping from ships that happened later.

WriteExternalMessage would have sent all add-on messages at the very end,
confusing programs that read the messages.
  • Loading branch information
stefanreuther committed Jan 13, 2021
1 parent df5a855 commit 7316144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.c
Expand Up @@ -106,7 +106,7 @@ void Message_Send(struct Message* m, RaceType_Def to)
{
assert(m->Length < sizeof(m->Content));
m->Content[m->Length] = '\0';
WriteExternalMessage(to, m->Content);
WriteAUXHOSTMessage(to, m->Content);
}

void Message_SendTemplate(RaceType_Def to, const char* tpl, const Uns32* args, size_t numArgs)
Expand Down

0 comments on commit 7316144

Please sign in to comment.