Maintain compatibility with older saved games (see previous commit) by keeping the old local_planetinfo_overrides name for the dictionary that contains these overrides.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1133 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2007-08-14 15:57:30 +00:00
parent 159b9e0522
commit 16f4ed9afb

View File

@ -673,14 +673,9 @@ static PlayerEntity *sSharedPlayer = nil;
// persistant UNIVERSE info
if ([dict objectForKey:@"localPlanetInfoOverrides"])
{
[UNIVERSE setLocalPlanetInfoOverrides:(NSDictionary *)[dict objectForKey:@"localPlanetInfoOverrides"]];
}
// Nikos - Maintain compatibility with older saved games that contain local planetinfo overrides.
else if ([dict objectForKey:@"local_planetinfo_overrides"])
{
[UNIVERSE setLocalPlanetInfoOverrides:(NSDictionary *)[dict objectForKey:@"local_planetinfo_overrides"]];
}
}
// communications log
if ([dict objectForKey:@"comm_log"])