summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Haley2014-10-24 02:58:42 -0500
committerJames Haley2014-10-24 02:58:42 -0500
commit68a553ddb3ca81e6df0815860021ea774f6006a7 (patch)
tree9136fe6cebaa1e038e99794e0afde6a7e2f34997 /src
parent3e3342a35a390e1496e8a68b1f297f5111700713 (diff)
downloadchocolate-doom-68a553ddb3ca81e6df0815860021ea774f6006a7.tar.gz
chocolate-doom-68a553ddb3ca81e6df0815860021ea774f6006a7.tar.bz2
chocolate-doom-68a553ddb3ca81e6df0815860021ea774f6006a7.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/strife/hu_stuff.c4
1 files changed, 4 insertions, 0 deletions
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