From 49cfba55bbaa018d199402547968dcaabea82b29 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 19 Apr 2008 08:21:55 +0000 Subject: (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. --- src/openttd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/openttd.cpp') 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; -- cgit v1.2.3-70-g09d2