]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/orig.c
Use relations_with() for US==THEM || getrel(NP, THEM)
[empserver] / src / lib / commands / orig.c
index 55f7f39e70cfcb54511e15c54554f7e37f7f866e..9dfb8b92d928cc8d8e0b7d58a43c9e269547a67b 100644 (file)
@@ -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;
        }