mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-28 02:32:37 +00:00
Update djui_chat_message.c
This commit is contained in:
parent
89c0daf760
commit
bd03905c5a
1 changed files with 2 additions and 2 deletions
|
|
@ -62,8 +62,8 @@ void djui_chat_message_create_from(u8 globalIndex, const char* message) {
|
|||
}
|
||||
|
||||
const char* playerColorString = network_get_player_text_color_string(np->localIndex);
|
||||
char chatMsg[MAX_CHAT_MSG_LENGTH] = { 0 };
|
||||
snprintf(chatMsg, MAX_CHAT_MSG_LENGTH, "%s%s\\#dcdcdc\\: %s", playerColorString, (np != NULL) ? np->name : "Player", message);
|
||||
char chatMsg[MAX_CHAT_PACKET_LENGTH] = { 0 };
|
||||
snprintf(chatMsg, MAX_CHAT_PACKET_LENGTH, "%s%s\\#dcdcdc\\: %s", playerColorString, (np != NULL) ? np->name : "Player", message);
|
||||
|
||||
play_sound((globalIndex == gNetworkPlayerLocal->globalIndex) ? SOUND_MENU_MESSAGE_DISAPPEAR : SOUND_MENU_MESSAGE_APPEAR, gGlobalSoundSource);
|
||||
djui_chat_message_create(chatMsg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue