Tiny cleanup.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3590 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2010-06-22 20:40:12 +00:00
parent 8749abb049
commit 4f9bbd2262
2 changed files with 3 additions and 5 deletions

View File

@ -617,8 +617,7 @@ static NSComparisonResult CompareDisplayModes(id arg1, id arg2, void *context)
// Create an NSOpenGLContext with the FullScreen pixel format. By specifying the non-FullScreen context as our "shareContext", we automatically inherit all of the textures, display lists, and other OpenGL objects it has defined.
fullScreenContext = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext:[gameView openGLContext]];
[pixelFormat release];
pixelFormat = nil;
DESTROY(pixelFormat);
if (fullScreenContext == nil)
{

View File

@ -944,15 +944,14 @@ static OOComparisonResult comparePrice(id dict1, id dict2, void * context);
if (![a_station isStation] || ![a_station validForAddToUniverse])
{
OOLog(@"universe.setup.badStation", @"Could not create built-in Coriolis station! Generating a stationless system.");
[a_station release];
a_station = nil;
DESTROY(a_station);
}
}
}
if (a_station != nil)
{
[a_station setOrientation: q_station];
[a_station setOrientation:q_station];
[a_station setPosition: stationPos];
[a_station setPitch: 0.0];
[a_station setScanClass: CLASS_STATION];