llook: Drop useless "spy loaded" conditional
The "loaded on ship" condition was useless from the start (v4.2.0).
The "loaded on land" condition became useless in commit 45d090b
,
v4.3.28.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
bae3f5447e
commit
7fddee401f
1 changed files with 1 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Known contributors to this file:
|
||||
* Ron Koenderink, 2006-2007
|
||||
* Markus Armbruster, 2004-2013
|
||||
* Markus Armbruster, 2004-2016
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -226,10 +226,6 @@ look_land(struct lndstr *lookland)
|
|||
continue;
|
||||
/* Don't always see spies */
|
||||
if (lchr[(int)lp->lnd_type].l_flags & L_SPY) {
|
||||
/* If it's on a ship or unit, assume it's hidden
|
||||
enough not to be seen */
|
||||
if (lp->lnd_ship >= 0 || lp->lnd_land >= 0)
|
||||
continue;
|
||||
if (!(chance(LND_SPY_DETECT_CHANCE(lp->lnd_effic))))
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue