/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2020, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
* natarg.c: Return countr # given country name or country #
*
* Known contributors to this file:
- * Markus Armbruster, 2006-2009
+ * Markus Armbruster, 2006-2016
*/
#include <config.h>
#include <ctype.h>
#include <stdlib.h>
-#include "file.h"
#include "match.h"
#include "misc.h"
#include "nat.h"
if (!np)
return -1;
if (opt_HIDDEN) {
- if (!player->god && !getcontact(getnatp(player->cnum), np->nat_cnum)) {
+ if (!player->god
+ && !in_contact(player->cnum, np->nat_cnum)) {
if (np->nat_stat != STAT_GOD) {
pr("Country '%s' has not been contacted.\n", arg);
return -1;