(svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore.

This commit is contained in:
rubidium
2008-04-19 08:21:55 +00:00
parent 15242b1784
commit 49cfba55bb
7 changed files with 139 additions and 105 deletions

View File

@@ -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;