Fixed air_color key in planetinfo.plist getting completely ignored. Skies with color other than blue are now possible. A hard coded default color is used if the key is not defined.

master
AnotherCommander 2020-07-21 18:23:18 +02:00
parent ba63810fa7
commit 251821f537
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ static OOColor *ColorWithHSBColor(Vector c)
[targetInfo setObject:[NSNumber numberWithFloat:cloudAlpha] forKey:@"cloud_alpha"];
// planetinfo overrides
color = [OOColor colorWithDescription:[sourceInfo objectForKey:@"atmosphere_color"]];
color = [OOColor colorWithDescription:[sourceInfo objectForKey:@"air_color"]];
if (color != nil) seaHSB = HSBColorWithColor(color);
color = [OOColor colorWithDescription:[sourceInfo objectForKey:@"cloud_color"]];
if (color != nil) landHSB = HSBColorWithColor(color);