Bugfix: target system memory expansion shouldn't try to restore locks on cloaked ships.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4856 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Chris Morris 2012-04-15 21:24:20 +00:00
parent 5e0136ab7b
commit 30d06dcbe5

View File

@ -8070,7 +8070,7 @@ static NSString *last_outfitting_key=nil;
if ((potential_target)&&(potential_target->isShip))
{
if (potential_target->zero_distance < SCANNER_MAX_RANGE2)
if (potential_target->zero_distance < SCANNER_MAX_RANGE2 && (![potential_target isCloaked]))
{
[super addTarget:potential_target];
if (missile_status != MISSILE_STATUS_SAFE)