Changeset - r10429:2fd3ff9ad1ec
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2008-12-16 20:15:36
frosch@openttd.org
(svn r14682) -Fix (r14672): Check the correct savegame version. (Thanks SmatZ)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -2584,25 +2584,25 @@ bool AfterLoadGame()
 
		FOR_ALL_SIGNS(si) {
 
			if (si->owner != OWNER_NONE && !IsValidCompanyID(si->owner)) si->owner = OWNER_NONE;
 
		}
 

	
 
		/* Station can get named based on an industry type, but the current ones
 
		 * are not, so mark them as if they are not named by an industry. */
 
		Station *st;
 
		FOR_ALL_STATIONS(st) {
 
			st->indtype = IT_INVALID;
 
		}
 
	}
 

	
 
	if (CheckSavegameVersion(103)) {
 
	if (CheckSavegameVersion(104)) {
 
		Vehicle *v;
 
		FOR_ALL_VEHICLES(v) {
 
			/* Set engine_type of shadow and rotor */
 
			if (v->type == VEH_AIRCRAFT && !IsNormalAircraft(v)) {
 
				v->engine_type = v->First()->engine_type;
 
			}
 
		}
 
	}
 

	
 
	GamelogPrintDebug(1);
 

	
 
	return InitializeWindowsAndCaches();
0 comments (0 inline, 0 general)