mirror of https://github.com/OpenTTD/OpenTTD
(svn r21050) -Fix (r20515): ignore underscores as well for help messages
parent
6e9bafa54a
commit
c311f18ba4
|
@ -1338,6 +1338,7 @@ DEF_CONSOLE_CMD(ConHelp)
|
||||||
const IConsoleCmd *cmd;
|
const IConsoleCmd *cmd;
|
||||||
const IConsoleAlias *alias;
|
const IConsoleAlias *alias;
|
||||||
|
|
||||||
|
RemoveUnderscores(argv[1]);
|
||||||
cmd = IConsoleCmdGet(argv[1]);
|
cmd = IConsoleCmdGet(argv[1]);
|
||||||
if (cmd != NULL) {
|
if (cmd != NULL) {
|
||||||
cmd->proc(0, NULL);
|
cmd->proc(0, NULL);
|
||||||
|
|
|
@ -83,5 +83,6 @@ bool GetArgumentInteger(uint32 *value, const char *arg);
|
||||||
void IConsoleGUIInit();
|
void IConsoleGUIInit();
|
||||||
void IConsoleGUIFree();
|
void IConsoleGUIFree();
|
||||||
void IConsoleGUIPrint(ConsoleColour colour_code, char *string);
|
void IConsoleGUIPrint(ConsoleColour colour_code, char *string);
|
||||||
|
char *RemoveUnderscores(char *name);
|
||||||
|
|
||||||
#endif /* CONSOLE_INTERNAL_H */
|
#endif /* CONSOLE_INTERNAL_H */
|
||||||
|
|
Loading…
Reference in New Issue