]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/repo.c
Update copyright notice
[empserver] / src / lib / commands / repo.c
index 1c73fd43ed17dd56158688625a92b73c98148e5e..3973353315e5607882cd505355f9d78030310556 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -58,7 +58,7 @@ repo(void)
        if (nat.nat_stat == STAT_UNUSED)
            continue;
        if (opt_HIDDEN) {
-           if (!player->god && !in_contact(natp, ni.cur))
+           if (!player->god && !in_contact(player->cnum, ni.cur))
                continue;
        }
        if (!player->god && nat.nat_stat != STAT_ACTIVE)