]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/play.c
Update copyright notice.
[empserver] / src / lib / commands / play.c
index 0350919b5888878bf5abe2e53f00d2864123407b..92b192a64e62ca12c92e050953cee24d39a297a7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -19,9 +19,9 @@
  *
  *  ---
  *
- *  See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
- *  related information and legal notices. It is expected that any future
- *  projects/authors will amend these files as needed.
+ *  See files README, COPYING and CREDITS in the root of the source
+ *  tree for related information and legal notices.  It is expected
+ *  that future projects/authors will amend these files as needed.
  *
  *  ---
  *
  *     Steve McClure, 1998
  */
 
-#include "misc.h"
-#include "player.h"
-#include "file.h"
-#include "nat.h"
+#include <config.h>
+
 #include "optlist.h"
 #include "commands.h"
 
@@ -70,7 +68,7 @@ static int
 play_list(struct player *joe)
 {
     time_t now;
-    char com[1 + 6*20 + 2];    /* user text */
+    char com[1 + 6*20 + 2];    /* UTF-8 */
     struct natstr *natp;
     struct natstr *us;
     int n;
@@ -85,12 +83,12 @@ play_list(struct player *joe)
        /* It's a blitz, we see everything */
     } else if (joe->god) {
        /* This country is a god, so we see it */
-    } else if (us->nat_stat == VIS) {
+    } else if (us->nat_stat == STAT_VIS) {
        /* We are a visitor country, we can't see squat, except deities */
        return 0;
     } else if (joe->cnum != player->cnum) {
        /* This isn't us.  Can we see it? */
-       if (natp->nat_stat == VIS) {
+       if (natp->nat_stat == STAT_VIS) {
            /* Yes, we can see visitors are logged on */
        } else if (getrel(natp, player->cnum) < ALLIED) {
            /* This is a non-allied country, don't show it. */