summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-19 08:21:55 +0000
committerrubidium <rubidium@openttd.org>2008-04-19 08:21:55 +0000
commit49cfba55bbaa018d199402547968dcaabea82b29 (patch)
treedfdce4df425e98d4331f3984284904c541a8d2a1 /src/openttd.cpp
parent15242b17844cff61e870933b7759d729516a33ea (diff)
downloadopenttd-49cfba55bbaa018d199402547968dcaabea82b29.tar.xz
(svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 82bd359f6..ae7b0ced5 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -91,6 +91,7 @@ void IncreaseDate();
void DoPaletteAnimations();
void MusicLoop();
void ResetMusic();
+void ResetOldNames();
extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
extern Player* DoStartupNewPlayer(bool is_ai);
@@ -1390,6 +1391,9 @@ bool AfterLoadGame()
}
}
+ /* From this point the old names array is cleared. */
+ ResetOldNames();
+
/* convert road side to my format. */
if (_opt.road_side) _opt.road_side = 1;