Return values and semicolons for all!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2890 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
7c2a544db2
commit
ca8bdfa70e
@ -825,7 +825,7 @@
|
||||
frequency = 0.15;
|
||||
phase = -1;
|
||||
size = 150;
|
||||
colors = ({hue = 60;},{ hue = 30;},{ hue = 30; saturation = 0; brightness = 0.85});
|
||||
colors = ({ hue = 60; }, { hue = 30; }, { hue = 30; saturation = 0; brightness = 0.85; });
|
||||
},
|
||||
{
|
||||
type = "flasher";
|
||||
@ -833,7 +833,7 @@
|
||||
frequency = 0.15;
|
||||
phase = 1;
|
||||
size = 150;
|
||||
colors = ({ hue = 30; saturation = 0; brightness = 0.85},{ hue = 60;},{hue = 30;});
|
||||
colors = ({ hue = 30; saturation = 0; brightness = 0.85; }, { hue = 60; }, { hue = 30; });
|
||||
},
|
||||
/* Old flashers. Replaced by the multicolour ones above.
|
||||
"*FLASHER* 0 0 60 60 0.15 1 150",
|
||||
|
@ -7426,7 +7426,7 @@ BOOL class_masslocks(int some_class)
|
||||
- (OOUniversalID)launchEscapeCapsule
|
||||
{
|
||||
OOUniversalID result = NO_TARGET;
|
||||
ShipEntity *mainPod = nil, *pod = nil;
|
||||
ShipEntity *mainPod = nil;
|
||||
unsigned n_pods, i;
|
||||
|
||||
/* BUG: player can't launch escape pod in interstellar space (because
|
||||
|
@ -2570,23 +2570,23 @@ GLfloat docked_light_specular[4] = { DOCKED_ILLUM_LEVEL, DOCKED_ILLUM_LEVEL, DOC
|
||||
{
|
||||
point0 = [self getWitchspaceExitPosition];
|
||||
entity = [self planet];
|
||||
if (!entity) return;
|
||||
if (entity == nil) return nil;
|
||||
}
|
||||
else if ([route isEqualTo:@"ws"] || [route isEqualTo:@"sw"])
|
||||
{
|
||||
point0 = [self getWitchspaceExitPosition];
|
||||
entity = [self sun];
|
||||
if (!entity) return;
|
||||
if (entity == nil) return nil;
|
||||
}
|
||||
else if ([route isEqualTo:@"sp"] || [route isEqualTo:@"ps"])
|
||||
{
|
||||
entity = [self sun];
|
||||
if (!entity) return;
|
||||
if (entity == nil) return nil;
|
||||
point0 = [entity position];
|
||||
double radius0 = [entity radius];
|
||||
|
||||
entity = [self planet];
|
||||
if (!entity) return;
|
||||
if (entity == nil) return nil;
|
||||
point1 = [entity position];
|
||||
|
||||
// shorten the route by scanner range & sun radius, otherwise ships could be created inside it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user