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
commit256d1797a38a5a3843e2bff6f6e3eaa156194e42 (patch)
treeaeeee2075bad006ee16ca3da616f660eb98bfd82
parentb419b918093c9b366cea40eabc3fa4d0bf35e221 (diff)
downloadopenttd-256d1797a38a5a3843e2bff6f6e3eaa156194e42.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>\".");