summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-28 16:59:51 +0000
committerDarkvater <darkvater@openttd.org>2005-05-28 16:59:51 +0000
commit426aa514fffd879e6b81f75fec22901aaf111e89 (patch)
tree16197bc31e9a939437238374d21b651af9438348 /console_cmds.c
parent8ef3f896f5f20992b18e0ecea7cfa59b8fdffc67 (diff)
downloadopenttd-426aa514fffd879e6b81f75fec22901aaf111e89.tar.xz
(svn r2372) - Fix (console): update the example scripts in the scripts/ directory to reflect the new console functionality
- Fix (console): any line starting with a '#' is a comment so ignore it - Fix (console): The special variables whose value can only be set by a custom process should, also print out their newly set value there, instead of relying on the default printout which is slightly confusing. Eg after you change the value it still printed out 'current value for...' instead of 'XXX changed to...'
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/console_cmds.c b/console_cmds.c
index fb68c01b5..27f7a5210 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1086,6 +1086,8 @@ bool NetworkChangeCompanyPassword(byte argc, char *argv[])
if (!_network_server)
SEND_COMMAND(PACKET_CLIENT_SET_PASSWORD)(_network_player_info[_local_player].password);
+ IConsolePrintF(_icolour_warn, "'company_pw' changed to: %s", _network_player_info[_local_player].password);
+
return true;
}
@@ -1136,6 +1138,7 @@ DEF_CONSOLE_CMD(ConProcServerIP)
_network_server_bind_ip = inet_addr(argv[0]);
snprintf(_network_server_bind_ip_host, sizeof(_network_server_bind_ip_host), "%s", inet_ntoa(*(struct in_addr *)&_network_server_bind_ip));
+ IConsolePrintF(_icolour_warn, "'server_ip' changed to: %s", inet_ntoa(*(struct in_addr *)&_network_server_bind_ip));
return true;
}