Make lload and lunload work on foreign lands only when named

load and unload work on foreign ships only when their argument
explicitely names them, i.e. you have to ask for them by number.  When
any other syntax is used, load() ignores foreign ships.  This makes
sense.  Change lload() to work just like that.
This commit is contained in:
Markus Armbruster 2009-01-05 13:50:20 +01:00
parent afb512fad7
commit 17d19266dc

View file

@ -248,10 +248,12 @@ lload(void)
while (nxtitem(&nbst, &land)) {
if (land.lnd_own == 0)
continue;
if (player->cnum != land.lnd_own &&
getrel(getnatp(land.lnd_own), player->cnum) != ALLIED)
if (player->cnum != land.lnd_own) {
if (!noisy)
continue;
if (getrel(getnatp(land.lnd_own), player->cnum) != ALLIED)
continue;
}
if (!getsect(land.lnd_x, land.lnd_y, &sect)) /* XXX */
continue;