summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 19:54:44 +0000
committertruelight <truelight@openttd.org>2004-12-13 19:54:44 +0000
commitcf205d059f543ae0a30ca4f3c926491d390c0e66 (patch)
treeaeeee2075bad006ee16ca3da616f660eb98bfd82
parentc185adf780687428097ea5f9f82d00a64623f1b0 (diff)
downloadopenttd-cf205d059f543ae0a30ca4f3c926491d390c0e66.tar.xz
(svn r1068) -Fix: [Console] Let the client remember his own name-change
-rw-r--r--console_cmds.c2
1 files changed, 2 insertions, 0 deletions
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 \"<name>\".");