(svn r1068) -Fix: [Console] Let the client remember his own name-change
authortruelight
Mon, 13 Dec 2004 19:54:44 +0000
changeset 637 7a7f57ccfdcd
parent 636 799b9e2c7eae
child 638 a26f83ba23f3
(svn r1068) -Fix: [Console] Let the client remember his own name-change
console_cmds.c
--- a/console_cmds.c	Mon Dec 13 19:07:54 2004 +0000
+++ b/console_cmds.c	Mon Dec 13 19:54:44 2004 +0000
@@ -655,6 +655,8 @@
 					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 \"<name>\".");