lighsActive starts off as true (default for initially_on). Use >= rather than == for argc checks unless there's a very good reason not to.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3015 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
56d279150a
commit
c451c8f454
@ -57,7 +57,7 @@ static NSString * const kOOLogNoteShowShipyardModel = @"script.debug.note.showSh
|
||||
|
||||
- (NSString *) processEscapePods // removes pods from cargo bay and treats categories of characters carried
|
||||
{
|
||||
if ([UNIVERSE strict]) return [NSString string]; // return a blank string
|
||||
if ([UNIVERSE strict]) return @"";
|
||||
|
||||
unsigned i;
|
||||
BOOL added_entry = NO; // to prevent empty lines for slaves and the rare empty report.
|
||||
|
@ -227,6 +227,7 @@ static GLfloat calcFuelChargeRate (GLfloat my_mass, GLfloat base_mass)
|
||||
suppressAegisMessages = NO;
|
||||
isMissile = NO;
|
||||
suppressExplosion = NO;
|
||||
_lightsActive = YES;
|
||||
|
||||
// set things from dictionary from here out - default values might require adjustment -- Kaks 20091130
|
||||
maxFlightSpeed = [shipDict oo_floatForKey:@"max_flight_speed" defaultValue:160.0f];
|
||||
|
@ -465,7 +465,7 @@ static JSBool SystemInfoRouteToSystem(JSContext *context, JSObject *this, uintN
|
||||
return NO;
|
||||
}
|
||||
|
||||
if (argc == 2)
|
||||
if (argc >= 2)
|
||||
{
|
||||
routeType = StringToRouteType(JSValToNSString(context, argv[1]));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user