extern int getrel(struct natstr *np, natid them);
extern int relations_with(natid, natid);
extern int getrejects(natid them, struct natstr *np);
-extern int getcontact(struct natstr *np, natid them);
+extern int in_contact(struct natstr *np, natid them);
extern void putrel(struct natstr *np, natid them, int relate);
extern void putreject(struct natstr *np, natid them, int how, int what);
extern void agecontact(struct natstr *np);
if (who == (natid)ni.cur)
continue;
if (opt_HIDDEN) {
- if (!player->god && !getcontact(natp, ni.cur)) {
+ if (!player->god && !in_contact(natp, ni.cur)) {
pr("You haven't contacted country #%d yet\n", ni.cur);
continue;
}
nws.nws_ntm = 1;
if (opt_HIDDEN) {
if (!player->god &&
- !(getcontact(getnatp(player->cnum), nws.nws_ano) &&
- getcontact(getnatp(player->cnum), nws.nws_vno)))
+ !(in_contact(getnatp(player->cnum), nws.nws_ano) &&
+ in_contact(getnatp(player->cnum), nws.nws_vno)))
continue;
}
page_has_news[rpt[nws.nws_vrb].r_newspage] = 1;
if (np->nat_stat < STAT_SANCT)
continue;
if (opt_HIDDEN) {
- if (!player->god && !getcontact(natp, cn))
+ if (!player->god && !in_contact(natp, cn))
continue;
- if (!player->god && !getcontact(getnatp(player->cnum), cn))
+ if (!player->god && !in_contact(getnatp(player->cnum), cn))
continue;
}
pr("%3d) %-20.20s ", cn, cname(cn));
if (nat.nat_stat == STAT_UNUSED)
continue;
if (opt_HIDDEN) {
- if (!player->god && !getcontact(natp, ni.cur))
+ if (!player->god && !in_contact(natp, ni.cur))
continue;
}
if (!player->god && nat.nat_stat != STAT_ACTIVE)
}
int
-getcontact(struct natstr *np, natid them)
+in_contact(struct natstr *np, natid them)
{
return np->nat_contact[them];
}
break;
natp = getnatp(cnum);
if (natp->nat_stat != STAT_GOD
- && !(getcontact(natp, idx) && getcontact(ptr, idx)))
+ && !(in_contact(natp, idx) && in_contact(ptr, idx)))
val->val_as.lng = -1;
}
break;
if (!np)
return -1;
if (opt_HIDDEN) {
- if (!player->god && !getcontact(getnatp(player->cnum), np->nat_cnum)) {
+ if (!player->god
+ && !in_contact(getnatp(player->cnum), np->nat_cnum)) {
if (np->nat_stat != STAT_GOD) {
pr("Country '%s' has not been contacted.\n", arg);
return -1;
if (other->nat_stat != STAT_ACTIVE)
continue;
if (opt_HIDDEN) {
- if (!getcontact(np, j))
+ if (!in_contact(np, j))
continue;
}