table = header { record } footer ;
header = "XDUMP" space [ "meta" space ]
- identifier space timestamp newline ;
+ identifier space timestamp newline ;
identifier = id-chr { id-chr } ;
id-char = ? ASCII characters 33..126 except '"#()<>=' ? ;
timestamp = intnum ;
*/
/* Immutable flags, fixed at compile-time */
/* Dereferencing entry address cast to struct emptypedstr * is safe */
-#define EFF_TYPED bit(0)
+#define EFF_TYPED bit(0)
/*
* EFF_XY / EFF_OWNER / EFF_GROUP assert that coordinates / owner /
* group of such a table's entries can be safely obtained by
extern int grant_btus(struct natstr *, int );
/* nation flags */
-#define NF_INFORM bit(0) /* Inform me of telegrams right away */
-#define NF_FLASH bit(1) /* Allow other players to flash me (sicko :) */
-#define NF_BEEP bit(2) /* Make beeping sounds when appropriate */
+#define NF_INFORM bit(0) /* Inform me of telegrams right away */
+#define NF_FLASH bit(1) /* Allow other players to flash me (sicko :) */
+#define NF_BEEP bit(2) /* Make beeping sounds when appropriate */
#define NF_COASTWATCH bit(3) /* Turn auto-coastwatch on */
#define NF_SONAR bit(4) /* Turn auto-sonar on */
#define NF_TECHLISTS bit(5) /* Sort lists by tech not type */
/ wasteland g gold mine n nuclear plant
- wilderness h harbor l library/school
c capital/city w warehouse e enlistment center
- p park u uranium mine ! headquarters
+ p park u uranium mine ! headquarters
COMMUNICATIONS * airfield
+ highway a agribusiness FINANCIAL
) radar installation o oil field b bank
.lt 5i \" Title length
.po 0.9i \" Page offset
.ev
-\" .so INFO.MAC \" Read in INFO.MAC macros
+\" .so INFO.MAC \" Read in INFO.MAC macros
\" except that's done by make now
return RET_FAIL;
}
if (!snxtitem(&ni, EF_LOAN, "*", NULL))
- return RET_SYN;
+ return RET_SYN;
(void)time(&now);
pr("\n");
pr(" -= Empire Financial Status Report =- \n");
prland(&land), total_mines_laid,
xyas(sect.sct_x, sect.sct_y, land.lnd_own));
if (!shells)
- pr(" but is now out of supply\n");
+ pr(" but is now out of supply\n");
else
pr("\n");
} else
if (!(natp = natargp(player->argp[1], NULL)))
return RET_SYN;
} else
- natp = getnatp(player->cnum);
+ natp = getnatp(player->cnum);
cnum = natp->nat_cnum;
if (!player->god && cnum != player->cnum) {
char *verb;
if (!snxtitem(&nstr, EF_NEWS, "*", NULL))
- return RET_SYN;
+ return RET_SYN;
memset(page_has_news, 0, sizeof(page_has_news));
memset(sectors_taken, 0, sizeof(sectors_taken));
(void)time(&now);
return RET_FAIL;
}
if (fclose(fptr)) {
- pr("Something went wrong closing the message.\n");
+ pr("Something went wrong closing the message.\n");
logerror("Could not properly close message file (%s).\n",
msgfilepath);
return RET_FAIL;
double edu_cons = 600000.0;
/* hap and edu avg mean that the weight on current happiness is
- * (cur_hap * hap_avg + hap_prod * etu) / (hap_avg + etu); */
+ * (cur_hap * hap_avg + hap_prod * etu) / (hap_avg + etu); */
float hap_avg = 16.0 * 3.0;
float edu_avg = 16.0 * 12.0;
np = player_new(ns);
if (!np) {
logerror("can't create player for fd %d", ns);
- close(ns);
- continue;
- }
+ close(ns);
+ continue;
+ }
#ifdef HAVE_GETADDRINFO
inaddr = sap->sa_family == AF_INET
? (void *)&((struct sockaddr_in *)sap)->sin_addr
char buf[MAXTELSIZE + 1]; /* UTF-8 */
if ((motd_fp = fopen(motdfil, "rb")) == NULL) {
- if (errno == ENOENT)
+ if (errno == ENOENT)
return RET_OK;
else {
pr ("Could not open motd.\n");
/*
* We want to get enough guns to be maxed out, enough shells to
- * fire once, one update's worth of food.
+ * fire once, one update's worth of food.
*
* Firts, try to forage in the sector
* Second look for a warehouse or headquarters to leech
* Third, look for a ship we own in a harbor
* Fourth, look for supplies in a supply unit we own
- * (one good reason to do this last is that the supply
- * unit will then call resupply, taking more time)
+ * (one good reason to do this last is that the supply
+ * unit will then call resupply, taking more time)
*
* May want to put code to resupply with SAMs here, later --ts
*/
if (writev(fd, iov, 2) < (int)(iov[0].iov_len + iov[1].iov_len)) {
logerror("telegram 'write' to #%d failed", to);
} else
- write_ok = 1;
+ write_ok = 1;
if (close(fd) == -1) {
logerror("telegram 'write' to #%d failed to close.", to);
}
schService = CreateService(schSCManager,
- service_name,
- service_name, /* service name to display */
+ service_name,
+ service_name, /* service name to display */
SERVICE_ALL_ACCESS, /* desired access */
SERVICE_WIN32_OWN_PROCESS, /* service type */
SERVICE_AUTO_START, /* start type */
}
if (!force) {
- printf("WARNING: this blasts the existing game in %s (if any)\n",
+ printf("WARNING: this blasts the existing game in %s (if any)\n",
gamedir);
- printf("continue? ");
- fgets(buf, sizeof(buf), stdin);
- if (*buf != 'y' && *buf != 'Y')
- exit(1);
+ printf("continue? ");
+ fgets(buf, sizeof(buf), stdin);
+ if (*buf != 'y' && *buf != 'Y')
+ exit(1);
}
for (i = 0; i < EF_MAX; i++) {
if (!EF_IS_GAME_STATE(i))