mirror of https://github.com/OpenTTD/OpenTTD
(svn r1068) -Fix: [Console] Let the client remember his own name-change
parent
c185adf780
commit
cf205d059f
|
@ -655,6 +655,8 @@ DEF_CONSOLE_CMD(ConSet) {
|
||||||
NetworkUpdateClientInfo(NETWORK_SERVER_INDEX);
|
NetworkUpdateClientInfo(NETWORK_SERVER_INDEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Also keep track of the new name on the client itself */
|
||||||
|
ttd_strlcpy(_network_player_name, argv[2], 40);
|
||||||
} else {
|
} else {
|
||||||
IConsolePrint(_iconsole_color_default, "With 'set name' you can change your network-player name.");
|
IConsolePrint(_iconsole_color_default, "With 'set name' you can change your network-player name.");
|
||||||
IConsolePrint(_iconsole_color_warning, "Usage: set name \"<name>\".");
|
IConsolePrint(_iconsole_color_warning, "Usage: set name \"<name>\".");
|
||||||
|
|
Loading…
Reference in New Issue