diff options
author | smatz <smatz@openttd.org> | 2008-06-03 18:35:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-03 18:35:58 +0000 |
commit | c7a9637834a96722be5a524c4c1e8932a45e3461 (patch) | |
tree | 72b7d141fd63dcb880f610a334390bf9c41f97b1 /src/console_cmds.cpp | |
parent | d58f0558761079552c4c607707dd131a2c5e5397 (diff) | |
download | openttd-c7a9637834a96722be5a524c4c1e8932a45e3461.tar.xz |
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index b0bd54b59..fe69e759b 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -29,6 +29,7 @@ #include "player_func.h" #include "player_base.h" #include "settings_type.h" +#include "gamelog.h" #ifdef ENABLE_NETWORK #include "table/strings.h" @@ -1303,6 +1304,11 @@ DEF_CONSOLE_CMD(ConListDumpVariables) return true; } +DEF_CONSOLE_CMD(ConGamelogPrint) +{ + GamelogPrintConsole(); + return true; +} #ifdef _DEBUG /* ****************************************** */ @@ -1366,6 +1372,7 @@ void IConsoleStdLibRegister() IConsoleCmdRegister("clear", ConClearBuffer); IConsoleCmdRegister("patch", ConPatch); IConsoleCmdRegister("list_patches", ConListPatches); + IConsoleCmdRegister("gamelog", ConGamelogPrint); IConsoleAliasRegister("dir", "ls"); IConsoleAliasRegister("del", "rm %+"); |