Skip to content

Commit

Permalink
Let player see transporters they do not own in campaign.
Browse files Browse the repository at this point in the history
See 530d67a.
  • Loading branch information
KJeff01 committed May 6, 2018
1 parent 820d5c6 commit f11a3bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/visibility.cpp
Expand Up @@ -435,7 +435,11 @@ int visibleObject(const BASE_OBJECT *psViewer, const BASE_OBJECT *psTarget, bool
// transporter in campaign ignores normal rules, can eg be off map
if (game.type == CAMPAIGN && psTarget->type == OBJ_DROID && isTransporter(castDroid(psTarget)))
{
return 0;
// the player should see an ally/enemy transporter
if (psViewer->player != selectedPlayer || psTarget->player == selectedPlayer)
{
return 0;
}
}

/* Get the sensor range */
Expand Down

0 comments on commit f11a3bd

Please sign in to comment.