Fix for scanForRocks AI method only finding boulders.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1271 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2007-12-10 13:57:52 +00:00
parent d2c81836ad
commit 3e845c4299

View File

@ -1404,7 +1404,7 @@ WormholeEntity* whole;
for (i = 0; i < n_scanned_ships; i++)
{
ShipEntity *thing = scanned_ships[i];
if ([thing hasRole:@"boulder"])
if ([thing hasRole:@"asteroid"])
{
GLfloat d2 = distance2_scanned_ships[i];
if (d2 < found_d2)
@ -1754,7 +1754,7 @@ WormholeEntity* whole;
}
- (void) scriptActionOnTarget:(NSString*) action
- (void) scriptActionOnTarget:(NSString *)action
{
PlayerEntity *player = [PlayerEntity sharedPlayer];
Entity *targEnt = [UNIVERSE entityForUniversalID:primaryTarget];