(svn r19981) -Add: Read NewGRF configuration during SL_LOAD_CHECK.

This commit is contained in:
frosch
2010-06-13 14:15:58 +00:00
parent 16618e6f16
commit d9b4d92050
4 changed files with 26 additions and 6 deletions

View File

@@ -2123,7 +2123,10 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
_savegame_type = SGT_OTTD;
if (mode != SL_LOAD_CHECK) {
if (mode == SL_LOAD_CHECK) {
/* The only part from AfterLoadGame() we need */
_load_check_data.grf_compatibility = IsGoodGRFConfigList(_load_check_data.grfconfig);
} else {
GamelogStartAction(GLAT_LOAD);
/* After loading fix up savegame for any internal changes that