summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
commitb25a4f8231f3ded44038ea454a3d4c6a2dc9217d (patch)
tree776122508c686680b9c97f37ba3cb92ef905d67f /src/console_cmds.cpp
parentd72273d1f3b55df0e301408d630f24ef92ea8479 (diff)
downloadopenttd-b25a4f8231f3ded44038ea454a3d4c6a2dc9217d.tar.xz
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index cc205f690..bd19fe425 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -37,18 +37,18 @@
#include "table/strings.h"
#endif /* ENABLE_NETWORK */
-// ** scriptfile handling ** //
+/* scriptfile handling */
static FILE *_script_file;
static bool _script_running;
-// ** console command / variable defines ** //
+/* console command / variable defines */
#define DEF_CONSOLE_CMD(function) static bool function(byte argc, char *argv[])
#define DEF_CONSOLE_HOOK(function) static bool function()
-/* **************************** */
-/* variable and command hooks */
-/* **************************** */
+/*****************************
+ * variable and command hooks
+ *****************************/
#ifdef ENABLE_NETWORK
@@ -343,7 +343,7 @@ DEF_CONSOLE_CMD(ConPrintWorkingDirectory)
return true;
}
- // XXX - Workaround for broken file handling
+ /* XXX - Workaround for broken file handling */
FiosGetSavegameList(SLD_LOAD_GAME);
FiosFreeSavegameList();
@@ -365,9 +365,9 @@ DEF_CONSOLE_CMD(ConClearBuffer)
}
-// ********************************* //
-// * Network Core Console Commands * //
-// ********************************* //
+/**********************************
+ * Network Core Console Commands
+ **********************************/
#ifdef ENABLE_NETWORK
DEF_CONSOLE_CMD(ConBan)
@@ -798,9 +798,9 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
#endif /* ENABLE_NETWORK */
-/* ******************************** */
-/* script file console commands */
-/* ******************************** */
+/*********************************
+ * script file console commands
+ *********************************/
DEF_CONSOLE_CMD(ConExec)
{
@@ -853,9 +853,9 @@ DEF_CONSOLE_CMD(ConReturn)
return true;
}
-/* **************************** */
-/* default console commands */
-/* **************************** */
+/*****************************
+ * default console commands
+ ******************************/
extern bool CloseConsoleLogIfActive();
DEF_CONSOLE_CMD(ConScript)
@@ -1678,9 +1678,9 @@ DEF_CONSOLE_CMD(ConGamelogPrint)
}
#ifdef _DEBUG
-/* ****************************************** */
-/* debug commands and variables */
-/* ****************************************** */
+/*******************************************
+ * debug commands and variables
+ ********************************************/
static void IConsoleDebugLibRegister()
{
@@ -1695,9 +1695,9 @@ static void IConsoleDebugLibRegister()
}
#endif
-/* ****************************************** */
-/* console command and variable registration */
-/* ****************************************** */
+/*******************************************
+ * console command and variable registration
+ ********************************************/
void IConsoleStdLibRegister()
{
@@ -1846,7 +1846,7 @@ void IConsoleStdLibRegister()
IConsoleAliasRegister("reload_cfg", "setting reload_cfg %+");
#endif /* ENABLE_NETWORK */
- // debugging stuff
+ /* debugging stuff */
#ifdef _DEBUG
IConsoleDebugLibRegister();
#endif