More annoying casts to placate the stupidity of gnu-gcc.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1652 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
7a574a8b3e
commit
332dfc6a1b
@ -715,7 +715,7 @@ static NSTimeInterval time_last_frame;
|
||||
if (!ident_engaged)
|
||||
{
|
||||
if (missile_status !=MISSILE_STATUS_SAFE)
|
||||
[UNIVERSE addMessage:[NSString stringWithFormat:@"%@ %@", DESC(@"missile-safe"), (primaryTarget != NO_TARGET && [self hasEquipmentItem:@"EQ_SCANNER_SHOW_MISSILE_TARGET"])? DESC(@"ident-off") : @""] forCount:2.5];
|
||||
[UNIVERSE addMessage:[NSString stringWithFormat:@"%@ %@", DESC(@"missile-safe"), (primaryTarget != NO_TARGET && [self hasEquipmentItem:@"EQ_SCANNER_SHOW_MISSILE_TARGET"])? DESC(@"ident-off") : (NSString *)@""] forCount:2.5];
|
||||
primaryTarget = NO_TARGET;
|
||||
[self safeAllMissiles];
|
||||
[self playMissileSafe];
|
||||
|
@ -4873,7 +4873,7 @@ BOOL class_masslocks(int some_class)
|
||||
{
|
||||
ShipEntity* target = [UNIVERSE entityForUniversalID:primaryTarget];
|
||||
primaryTarget = NO_TARGET;
|
||||
[self doScriptEvent:@"shipLostTarget" withArgument: (target && target->isShip) ? target : nil];
|
||||
[self doScriptEvent:@"shipLostTarget" withArgument:(target && target->isShip) ? (id)target : nil];
|
||||
[shipAI reactToMessage:@"TARGET_LOST"];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user