From cf205d059f543ae0a30ca4f3c926491d390c0e66 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 13 Dec 2004 19:54:44 +0000 Subject: (svn r1068) -Fix: [Console] Let the client remember his own name-change --- console_cmds.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console_cmds.c') diff --git a/console_cmds.c b/console_cmds.c index 395afc330..3e2dcb07f 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -655,6 +655,8 @@ DEF_CONSOLE_CMD(ConSet) { NetworkUpdateClientInfo(NETWORK_SERVER_INDEX); } } + /* Also keep track of the new name on the client itself */ + ttd_strlcpy(_network_player_name, argv[2], 40); } else { IConsolePrint(_iconsole_color_default, "With 'set name' you can change your network-player name."); IConsolePrint(_iconsole_color_warning, "Usage: set name \"\"."); -- cgit v1.2.3-54-g00ecf