X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fcommands%2Forig.c;h=9dfb8b92d928cc8d8e0b7d58a43c9e269547a67b;hp=55f7f39e70cfcb54511e15c54554f7e37f7f866e;hb=bdf63bc5faf3ef719a60f2b2e0dccf82878a38da;hpb=928e9a4cc3552ded6d673e5e915e61656c484db6 diff --git a/src/lib/commands/orig.c b/src/lib/commands/orig.c index 55f7f39e7..9dfb8b92d 100644 --- a/src/lib/commands/orig.c +++ b/src/lib/commands/orig.c @@ -67,8 +67,7 @@ orig(void) cnum = natarg(p, NULL); if (!(np = getnatp(cnum))) return RET_SYN; - if (!player->god && player->cnum != cnum - && getrel(np, player->cnum) != ALLIED) { + if (!player->god && relations_with(cnum, player->cnum) != ALLIED) { pr("Country %s is not allied with you!\n", np->nat_cnam); return RET_FAIL; }