]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/nat.c
Fix reject accept
[empserver] / src / lib / common / nat.c
index 2e1fdcb2c05be8658ea2796272e4169cc2344e46..ab0613f1c385b1870227a271b30955251b798777 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *  ---
  *
  *  nat.c: Misc. accesses on the nation file
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare, 1989
  */
 
 #include <config.h>
 
-#include "prototypes.h"
+#include "file.h"
 #include "misc.h"
 #include "nat.h"
-#include "file.h"
-#include "optlist.h"
+#include "sect.h"
 
 char *relates[] = {
     /* must follow nation relation defines in nat.h */
@@ -140,7 +139,7 @@ putreject(struct natstr *np, natid them, int how, int what)
     if (how)
        np->nat_rejects[them] |= what;
     else
-       np->nat_rejects[them] &= what;
+       np->nat_rejects[them] &= ~what;
 }
 
 void