- Fixed my recently added bug with multiple page report screens
- change in canAcceptEscort(), so that any non-escort ship with police scan class can have escorts/wingman and not only those with police role. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3846 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
1242dfdd67
commit
08b25acda7
@ -2039,12 +2039,17 @@ static NSTimeInterval time_last_frame;
|
||||
{
|
||||
BOOL reportEnded = ([dockingReport length] == 0);
|
||||
[self playDismissedReportScreen];
|
||||
[self setGuiToStatusScreen];
|
||||
if(reportEnded)
|
||||
{
|
||||
[self setGuiToStatusScreen];
|
||||
[self doScriptEvent:@"reportScreenEnded"]; // last report given. Screen is now free for missionscreens.
|
||||
[self doWorldEventUntilMissionScreen:@"missionScreenOpportunity"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setGuiToDockingReportScreen];
|
||||
}
|
||||
|
||||
}
|
||||
spacePressed = YES;
|
||||
}
|
||||
|
@ -1245,8 +1245,15 @@ static GLfloat calcFuelChargeRate (GLfloat my_mass, GLfloat base_mass)
|
||||
}
|
||||
[escortGroup setLeader:self];
|
||||
|
||||
pilotRole = bounty ? @"pirate" : @"hunter"; // hunters have insurancies, pirates not.
|
||||
|
||||
if ([self isPolice])
|
||||
{
|
||||
pilotRole = @"police"; // police are always insured.
|
||||
}
|
||||
else
|
||||
{
|
||||
pilotRole = bounty ? @"pirate" : @"hunter"; // hunters have insurancies, pirates not.
|
||||
}
|
||||
|
||||
while (_pendingEscortCount > 0)
|
||||
{
|
||||
Vector ex_pos = [self coordinatesForEscortPosition:[escortGroup count] - 1]; // this adds ship 1 on position 1 etc.
|
||||
@ -9094,20 +9101,18 @@ BOOL class_masslocks(int some_class)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
BOOL isEscort = [self isEscort];
|
||||
//police has to be checked first!
|
||||
if (!isEscort && [self hasPrimaryRole:@"police"]) // interceptors always should have police as primaryRole.
|
||||
if (scanClass != [potentialEscort scanClass]) // this makes sure that wingman can only select police.
|
||||
{
|
||||
return [potentialEscort hasPrimaryRole:@"wingman"];
|
||||
return NO;
|
||||
}
|
||||
if ([self bounty] == 0 && [potentialEscort bounty] != 0) // clean mothers can only accept clean escorts
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
if (!isEscort)
|
||||
if (![self isEscort]) // self is NOT wingman or escort
|
||||
{
|
||||
return [potentialEscort hasPrimaryRole:@"escort"];
|
||||
}
|
||||
return [potentialEscort isEscort]; // is wingman or escort
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user