diff options
author | truelight <truelight@openttd.org> | 2004-12-13 19:54:44 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-13 19:54:44 +0000 |
commit | 256d1797a38a5a3843e2bff6f6e3eaa156194e42 (patch) | |
tree | aeeee2075bad006ee16ca3da616f660eb98bfd82 | |
parent | b419b918093c9b366cea40eabc3fa4d0bf35e221 (diff) | |
download | openttd-256d1797a38a5a3843e2bff6f6e3eaa156194e42.tar.xz |
(svn r1068) -Fix: [Console] Let the client remember his own name-change
-rw-r--r-- | console_cmds.c | 2 |
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>\"."); |