summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-22 09:25:36 +0000
committercelestar <celestar@openttd.org>2006-04-22 09:25:36 +0000
commit395b44d15c5238b6b931c873ccaf6bfc41419611 (patch)
tree494e258abac4810a65e1c5eec1a5e877910b237a
parent65979340dea72e31751deafa7e78657829c98df5 (diff)
downloadopenttd-395b44d15c5238b6b931c873ccaf6bfc41419611.tar.xz
(svn r4520) -Fix: Did last commit in the wrong branch. Repair and shame on me.
-rw-r--r--main_gui.c6
-rw-r--r--misc.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/main_gui.c b/main_gui.c
index d22931528..c141c9e47 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -2477,3 +2477,9 @@ void GameSizeChanged(void)
ScreenSizeChanged();
MarkWholeScreenDirty();
}
+
+void InitializeMainGui(void)
+{
+ /* Clean old GUI values */
+ _last_built_railtype = 0;
+}
diff --git a/misc.c b/misc.c
index f0e3828bd..f8b2e0e90 100644
--- a/misc.c
+++ b/misc.c
@@ -104,6 +104,7 @@ void InitializeAirportGui(void);
void InitializeDock(void);
void InitializeDockGui(void);
void InitializeIndustries(void);
+void InitializeMainGui(void);
void InitializeLandscape(void);
void InitializeTowns(void);
void InitializeTrees(void);
@@ -168,6 +169,7 @@ void InitializeGame(int mode, uint size_x, uint size_y)
InitializeSigns();
InitializeStations();
InitializeIndustries();
+ InitializeMainGui();
InitializeNameMgr();
InitializeVehiclesGuiList();