summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-18 01:10:23 +0000
committersmatz <smatz@openttd.org>2010-05-18 01:10:23 +0000
commit911061ac38bc5ce025255bce54baf46eac9bd53f (patch)
treea701c045c0428d3ebfaf77a949e7e70148b4347a /src
parentbee74bd82b9328aa7b24e97dcb87941f101435ef (diff)
downloadopenttd-911061ac38bc5ce025255bce54baf46eac9bd53f.tar.xz
(svn r19850) -Codechange: move declaration of InitializeRailGUI() to rail_gui.h
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp2
-rw-r--r--src/rail_gui.h1
-rw-r--r--src/saveload/afterload.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 0c04838f2..644781162 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -64,6 +64,7 @@
#include "engine_base.h"
#include "engine_func.h"
#include "core/random_func.hpp"
+#include "rail_gui.h"
#include "newgrf_commons.h"
@@ -87,7 +88,6 @@ void CallWindowTickEvent();
extern void SetDifficultyLevel(int mode, DifficultySettings *gm_opt);
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);
extern void ShowOSErrorBox(const char *buf, bool system);
-extern void InitializeRailGUI();
/**
* Error handling for fatal user errors.
diff --git a/src/rail_gui.h b/src/rail_gui.h
index cb8d85690..2708bf466 100644
--- a/src/rail_gui.h
+++ b/src/rail_gui.h
@@ -17,5 +17,6 @@
void ShowBuildRailToolbar(RailType railtype, int button);
void ReinitGuiAfterToggleElrail(bool disable);
bool ResetSignalVariant(int32 = 0);
+void InitializeRailGUI();
#endif /* RAIL_GUI_H */
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 9ab519242..9a128e404 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -51,6 +51,7 @@
#include "../newgrf.h"
#include "../engine_base.h"
#include "../engine_func.h"
+#include "../rail_gui.h"
#include "table/strings.h"
@@ -60,7 +61,6 @@
extern StringID _switch_mode_errorstr;
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);
-extern void InitializeRailGUI();
/**
* Makes a tile canal or water depending on the surroundings.