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:
Markus Armbruster 2011-01-30 18:37:02 +01:00
parent 58cbd4cc2e
commit 0c60e574a9

View file

@ -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;
} }