mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codefix: wrong parameter names and partially missing parameters
This commit is contained in:
@@ -133,6 +133,7 @@ static std::string RemoveUnderscores(std::string name)
|
||||
* Register a new command to be used in the console
|
||||
* @param name name of the command that will be used
|
||||
* @param proc function that will be called upon execution of command
|
||||
* @param hook Callback to check whether the command is allowed to run in the current context.
|
||||
*/
|
||||
/* static */ void IConsole::CmdRegister(const std::string &name, IConsoleCmdProc *proc, IConsoleHook *hook)
|
||||
{
|
||||
@@ -265,6 +266,7 @@ static void IConsoleAliasExec(const IConsoleAlias *alias, std::span<std::string>
|
||||
* Execute a given command passed to us. First chop it up into
|
||||
* individual tokens (separated by spaces), then execute it if possible
|
||||
* @param command_string string to be parsed and executed
|
||||
* @param recurse_count The number of re-entrant calls to this function.
|
||||
*/
|
||||
void IConsoleCmdExec(std::string_view command_string, const uint recurse_count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user