diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-02 15:52:19 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-02 15:52:19 +0000 |
commit | d102d0c26dfad035938426ddef5c3194844999d6 (patch) | |
tree | 046b689f2282f62a4969988c6d1b6898c5d25205 /network.c | |
parent | 7a012a3465273d3696a243c8d4a5a9561c521fce (diff) | |
download | openttd-d102d0c26dfad035938426ddef5c3194844999d6.tar.xz |
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
- Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
Diffstat (limited to 'network.c')
-rw-r--r-- | network.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -1370,21 +1370,6 @@ void NetworkShutDown(void) } #endif } - -void NetworkChangeCompanyPassword(const char *str) -{ - if (strncmp(str, "*", sizeof(_network_player_info[_local_player].password)) == 0) { - _network_player_info[_local_player].password[0] = '\0'; - IConsolePrint(_iconsole_color_warning, "Company password protection removed."); - } else { - ttd_strlcpy(_network_player_info[_local_player].password, str, sizeof(_network_player_info[_local_player].password)); - IConsolePrintF(_iconsole_color_warning, "Company protected with password '%s'.", _network_player_info[_local_player].password); - } - - if (!_network_server) - SEND_COMMAND(PACKET_CLIENT_SET_PASSWORD)(_network_player_info[_local_player].password); -} - #else void ParseConnectionString(const char **player, const char **port, char *connection_string) {} |