]> git.pond.sub.org Git - empserver/commitdiff
Make files set the usual nation flags for POGO
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Nov 2011 09:28:54 +0000 (10:28 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:05 +0000 (11:47 +0100)
The add command sets nation flags NF_FLASH, NF_BEEP, NF_COASTWATCH,
NF_SONAR, and since 4.2.6 NF_TECHLISTS.  POGO is created by the files
utility, which sets only NF_FLASH (since 4.2.2).  Change files to
match add.

src/util/files.c

index df12ab8550b70917c644483f773a1f64205af150..35805235fecaf9f9e3f0e1324e83cc17b080e0ac 100644 (file)
@@ -30,7 +30,7 @@
  *     Thomas Ruschak
  *     Ken Stevens, 1995
  *     Steve McClure, 1998
- *     Markus Armbruster, 2004-2010
+ *     Markus Armbruster, 2004-2011
  */
 
 #include <config.h>
@@ -141,7 +141,8 @@ main(int argc, char *argv[])
     nat.nat_stat = STAT_GOD;
     nat.nat_btu = 255;
     nat.nat_money = 123456789;
-    nat.nat_flags |= NF_FLASH;
+    nat.nat_flags =
+       NF_FLASH | NF_BEEP | NF_COASTWATCH | NF_SONAR | NF_TECHLISTS;
     ef_write(EF_NATION, 0, &nat);
     printf("All praise to %s!\n", nat.nat_cnam);
     if (mkdir(teldir, S_IRWXU | S_IRWXG) < 0 && errno != EEXIST) {