diff options
author | signde <signde@openttd.org> | 2004-09-13 06:56:30 +0000 |
---|---|---|
committer | signde <signde@openttd.org> | 2004-09-13 06:56:30 +0000 |
commit | 263042cdf2a1eb2a5176b2259464d36de5460fe6 (patch) | |
tree | 2f3851739c41ccdbf22485444d4f4b00422dc28c /console.c | |
parent | 01dd0219d312060d64d714c566a5307f6b187057 (diff) | |
download | openttd-263042cdf2a1eb2a5176b2259464d36de5460fe6.tar.xz |
(svn r230) -Feature: IConsoleWarning for warning messages
-Feature: added info_cmd command
-Codechange: renamed "varinfo" to "info_var"
-Fix: some const fixes in console.h
-Fix: fixed return value of IConsoleCmdGet
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -187,7 +187,8 @@ void IConsoleInit() extern char _openttd_revision[]; #endif _iconsole_color_default = 1; - _iconsole_color_error = 3; + _iconsole_color_error = 3;
+ _iconsole_color_warning = 13; _iconsole_color_debug = 5; _iconsole_color_commands = 2; _iconsole_scroll=79; @@ -358,6 +359,11 @@ void IConsoleError(const byte* string) { if (_stdlib_developer>0) IConsolePrintF(_iconsole_color_error, "ERROR: %s", string); } +
+void IConsoleWarning(const byte* string)
+{
+ if (_stdlib_developer>0) IConsolePrintF(_iconsole_color_warning, "WARNING: %s", string);
+}
void IConsoleCmdRegister(const byte * name, void * addr) { @@ -390,7 +396,7 @@ void IConsoleCmdRegister(const byte * name, void * addr) } } -void* IConsoleCmdGet(const byte * name) +_iconsole_cmd * IConsoleCmdGet(const byte * name) { _iconsole_cmd * item; |