summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-03 11:48:55 +0000
committerDarkvater <darkvater@openttd.org>2005-05-03 11:48:55 +0000
commitad6b37a423945c4eac7292e57b9289d3200b6633 (patch)
treee45909a50411d27ee115ef34a94b22b8fdbe0835
parenta1e27b16061ddf1c00ea38473d3783675b95314b (diff)
downloadopenttd-ad6b37a423945c4eac7292e57b9289d3200b6633.tar.xz
(svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands
-rw-r--r--console.c1
-rw-r--r--console_cmds.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/console.c b/console.c
index c07fdc447..cc56815c2 100644
--- a/console.c
+++ b/console.c
@@ -272,6 +272,7 @@ void IConsoleResize(void)
_iconsole_win->height = _screen.height - ICON_BOTTOM_BORDERWIDTH;
_iconsole_win->width = _screen.width;
break;
+ default: break;
}
MarkWholeScreenDirty();
diff --git a/console_cmds.c b/console_cmds.c
index d4fe3001a..07104bb8b 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -872,7 +872,7 @@ DEF_CONSOLE_CMD(ConHelp)
var = IConsoleVarGet(argv[1]);
if (var != NULL && var->help != NULL) {
- IConsolePrintF(_iconsole_color_warning, "%s.", var->help);
+ IConsoleHelp(var->help);
return true;
}