Codechange: do not declare functions in blocks
This commit is contained in:
@@ -1069,6 +1069,9 @@ DEF_CONSOLE_CMD(ConReturn)
|
||||
* default console commands
|
||||
******************************/
|
||||
extern bool CloseConsoleLogIfActive();
|
||||
extern const std::vector<GRFFile *> &GetAllGRFFiles();
|
||||
extern void ConPrintFramerate(); // framerate_gui.cpp
|
||||
extern void ShowFramerateWindow();
|
||||
|
||||
DEF_CONSOLE_CMD(ConScript)
|
||||
{
|
||||
@@ -2213,7 +2216,6 @@ DEF_CONSOLE_CMD(ConNewGRFProfile)
|
||||
return true;
|
||||
}
|
||||
|
||||
extern const std::vector<GRFFile *> &GetAllGRFFiles();
|
||||
const std::vector<GRFFile *> &files = GetAllGRFFiles();
|
||||
|
||||
/* "list" sub-command */
|
||||
@@ -2338,8 +2340,6 @@ static void IConsoleDebugLibRegister()
|
||||
|
||||
DEF_CONSOLE_CMD(ConFramerate)
|
||||
{
|
||||
extern void ConPrintFramerate(); // framerate_gui.cpp
|
||||
|
||||
if (argc == 0) {
|
||||
IConsolePrint(CC_HELP, "Show frame rate and game speed information.");
|
||||
return true;
|
||||
@@ -2351,8 +2351,6 @@ DEF_CONSOLE_CMD(ConFramerate)
|
||||
|
||||
DEF_CONSOLE_CMD(ConFramerateWindow)
|
||||
{
|
||||
extern void ShowFramerateWindow();
|
||||
|
||||
if (argc == 0) {
|
||||
IConsolePrint(CC_HELP, "Open the frame rate window.");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user