add texture support for planets created by the system
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@345 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
c701e8d435
commit
55272b85b9
@ -405,6 +405,11 @@ void setUpSinTable()
|
||||
int radius_km = [(NSNumber *)[planetinfo objectForKey:KEY_RADIUS] intValue];
|
||||
int techlevel = [(NSNumber *)[planetinfo objectForKey:KEY_TECHLEVEL] intValue];
|
||||
//NSLog(@"Generating planet %@ with radius %dkm",[planetinfo objectForKey:KEY_NAME],radius_km);
|
||||
if ([planetinfo objectForKey:@"texture"])
|
||||
{
|
||||
textureName = [[uni textureStore] getTextureNameFor:(NSString*)[planetinfo objectForKey:@"texture"]];
|
||||
isTextured = (textureName != 0);
|
||||
}
|
||||
|
||||
shuttles_on_ground = 1 + floor(techlevel * 0.5);
|
||||
last_launch_time = 0.0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user