Fixed bug where atmosphere was always set to true, even for moons, when texture was changed via JS.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3753 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
3c099b9a59
commit
04ccc90a6a
@ -936,7 +936,7 @@ static int baseVertexIndexForEdge(int va, int vb, BOOL textured);
|
||||
|
||||
NSDictionary *atmo_dictionary = [NSDictionary dictionaryWithObject:@"0" forKey:@"percent_cloud"];
|
||||
[atmosphere autorelease];
|
||||
atmosphere = [[PlanetEntity alloc] initAsAtmosphereForPlanet:self dictionary:atmo_dictionary];
|
||||
atmosphere = [self planetType] == STELLAR_TYPE_MOON ? nil : [[PlanetEntity alloc] initAsAtmosphereForPlanet:self dictionary:atmo_dictionary];
|
||||
|
||||
rotationAxis = kBasisYVector;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user