Changeset - r16329:3aa9c85beee1
[Not reviewed]
master
0 2 0
rubidium - 14 years ago 2010-10-27 20:52:43
rubidium@openttd.org
(svn r21050) -Fix (r20515): ignore underscores as well for help messages
2 files changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/console_cmds.cpp
Show inline comments
 
@@ -1335,12 +1335,13 @@ DEF_CONSOLE_CMD(ConPart)
 
DEF_CONSOLE_CMD(ConHelp)
 
{
 
	if (argc == 2) {
 
		const IConsoleCmd *cmd;
 
		const IConsoleAlias *alias;
 

	
 
		RemoveUnderscores(argv[1]);
 
		cmd = IConsoleCmdGet(argv[1]);
 
		if (cmd != NULL) {
 
			cmd->proc(0, NULL);
 
			return true;
 
		}
 

	
src/console_internal.h
Show inline comments
 
@@ -80,8 +80,9 @@ void IConsoleStdLibRegister();
 
/* Supporting functions */
 
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 */
0 comments (0 inline, 0 general)