Make files set the usual nation flags for POGO

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.
This commit is contained in:
Markus Armbruster 2011-11-06 10:28:54 +01:00
parent 5232add0f5
commit 5fd595a59a

View file

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