Permit sharebmap with yourself
Does nothing. Before, it failed with a mildly bogus "does not have friendly relations towards you" message.
This commit is contained in:
parent
58cbd4cc2e
commit
0c60e574a9
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ shar(void)
|
||||||
if (to < 0)
|
if (to < 0)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
|
|
||||||
if (getrel(getnatp(to), player->cnum) < FRIENDLY) {
|
if (to != player->cnum && getrel(getnatp(to), player->cnum) < FRIENDLY) {
|
||||||
pr("%s does not have friendly relations towards you\n", cname(to));
|
pr("%s does not have friendly relations towards you\n", cname(to));
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue