summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-02-10 17:01:03 +0000
committersmatz <smatz@openttd.org>2010-02-10 17:01:03 +0000
commitd8a0278cf2d78efeb96846568e0cddaa46c60cf2 (patch)
treeb6dd1ffae94c0a76c83985b83922d02fd4b7880c /src/console_cmds.cpp
parent21bd2722cd89995370523385c213da32c8d47100 (diff)
downloadopenttd-d8a0278cf2d78efeb96846568e0cddaa46c60cf2.tar.xz
(svn r19082) -Codechange: make 'developer' a regular setting
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 1b4eac61d..cfd46e042 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1781,9 +1781,6 @@ static void IConsoleDebugLibRegister()
void IConsoleStdLibRegister()
{
- /* stdlib */
- extern byte _stdlib_developer; // XXX extern in .cpp
-
/* default variables and functions */
IConsoleCmdRegister("debug_level", ConDebugLevel);
IConsoleCmdRegister("dump_vars", ConListDumpVariables);
@@ -1831,6 +1828,7 @@ void IConsoleStdLibRegister()
IConsoleAliasRegister("set", "setting %+");
IConsoleAliasRegister("set_newgame", "setting_newgame %+");
IConsoleAliasRegister("list_patches", "list_settings %+");
+ IConsoleAliasRegister("developer", "setting developer %+");
#ifdef ENABLE_AI
IConsoleCmdRegister("list_ai", ConListAI);
@@ -1840,8 +1838,6 @@ void IConsoleStdLibRegister()
IConsoleCmdRegister("stop_ai", ConStopAI);
#endif /* ENABLE_AI */
- IConsoleVarRegister("developer", &_stdlib_developer, ICONSOLE_VAR_BYTE, "Redirect debugging output from the console/command line to the ingame console (value 2). Default value: 1");
-
/* networking variables and functions */
#ifdef ENABLE_NETWORK
/* Network hooks; only active in network */