commit 68a553ddb3ca81e6df0815860021ea774f6006a7
Author: James Haley <haleyjd@hotmail.com>
AuthorDate: Fri Oct 24 02:58:42 2014 -0500
Commit: James Haley <haleyjd@hotmail.com>
CommitDate: Fri Oct 24 02:58:42 2014 -0500
Fix 4: Changing player name on local client
Totally left out one of the two sprintf calls found in HU_Responder
which is responsible for setting the player's name on the consoleplayer
node (other nodes receive it through the chat system).
---
src/strife/hu_stuff.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/strife/hu_stuff.c b/src/strife/hu_stuff.c
index f3fb0c64..17e27a6e 100644
--- a/src/strife/hu_stuff.c
+++ b/src/strife/hu_stuff.c
@@ -667,6 +667,10 @@ boolean HU_Responder(event_t *ev)
DEH_snprintf(lastmessage, sizeof(lastmessage),
"%s now %.13s", player_names[consoleplayer],
w_chat.l.l);
+ // haleyjd 20141024: missing name set for local client
+ DEH_snprintf(player_names[consoleplayer],
+ sizeof(player_names[consoleplayer]),
+ "%.13s: ", w_chat.l.l);
hu_setting_name = false;
}
else