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:
parent
afb512fad7
commit
17d19266dc
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
continue;
|
||||
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, §)) /* XXX */
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue