Skip to content

Commit

Permalink
Entities designated as excepted for collision with the player will no…
Browse files Browse the repository at this point in the history
…w not limit the torus speed variability. Thanks to Milo for this contribution.
  • Loading branch information
AnotherCommander committed Jul 11, 2020
1 parent 91ad883 commit 07e2ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Doc/contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Olli Krienke (Svengali)
Lazygun
Dave MacLachlan (Jester)
MaddTheSane
Milo
Chris Morris (cim)
Steve Murphy (Capt. Murphy)
Norbert Nagy (Norby)
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Entities/PlayerEntity.m
Original file line number Diff line number Diff line change
Expand Up @@ -3170,7 +3170,7 @@ - (void) updateAlertConditionForNearbyEntities
if (EXPECT_NOT(needHyperspeedNearest))
{
// not visual effects, waypoints, ships, etc.
if (scannedEntity != self && [scannedEntity canCollide])
if (scannedEntity != self && [scannedEntity canCollide] && (![scannedEntity isShip] || ![self collisionExceptedFor:(ShipEntity *) scannedEntity]))
{
hsnDistance = sqrt(scannedEntity->zero_distance)-[scannedEntity collisionRadius];
needHyperspeedNearest = NO;
Expand Down

0 comments on commit 07e2ddb

Please sign in to comment.