summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-27 20:52:43 +0000
committerrubidium <rubidium@openttd.org>2010-10-27 20:52:43 +0000
commitc311f18ba40f0cbe749f2881caf9998f76e5c006 (patch)
tree9e0463149368c6d0180a91c7129da8a1a64ab670 /src
parent6e9bafa54a501705e8cec2a34bd7f8a05a003477 (diff)
downloadopenttd-c311f18ba40f0cbe749f2881caf9998f76e5c006.tar.xz
(svn r21050) -Fix (r20515): ignore underscores as well for help messages
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp1
-rw-r--r--src/console_internal.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 8f976b48f..89680fde5 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1338,6 +1338,7 @@ DEF_CONSOLE_CMD(ConHelp)
const IConsoleCmd *cmd;
const IConsoleAlias *alias;
+ RemoveUnderscores(argv[1]);
cmd = IConsoleCmdGet(argv[1]);
if (cmd != NULL) {
cmd->proc(0, NULL);
diff --git a/src/console_internal.h b/src/console_internal.h
index b4d70fa2e..6fe2a4e1d 100644
--- a/src/console_internal.h
+++ b/src/console_internal.h
@@ -83,5 +83,6 @@ bool GetArgumentInteger(uint32 *value, const char *arg);
void IConsoleGUIInit();
void IConsoleGUIFree();
void IConsoleGUIPrint(ConsoleColour colour_code, char *string);
+char *RemoveUnderscores(char *name);
#endif /* CONSOLE_INTERNAL_H */