summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>\".");