* ---
*
* files.c: Create all the misc files
- *
+ *
* Known contributors to this file:
* Thomas Ruschak
* Ken Stevens, 1995
}
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))
continue;
- if (!ef_open(i, EFF_CREATE)) {
+ if (!ef_open(i, EFF_CREATE | EFF_NOTIME, -1)) {
perror("ef_open");
exit(1);
}
for (i = 1; i < MAXNOC; i++) {
nat.ef_type = EF_NATION;
nat.nat_cnum = nat.nat_uid = i;
+ nat.nat_seqno = 0;
putnat((&nat));
}
memset(&realm, 0, sizeof(realm));
for (j = 0; j < MAXNOR; j++) {
realm.r_realm = j;
realm.r_uid = (i * MAXNOR) + j;
+ realm.r_seqno = 0;
putrealm(&realm);
}
}
sp->ef_type = EF_SECTOR;
sp->sct_uid = XYOFFSET(x, y);
+ sp->sct_seqno = 0;
sp->sct_x = x;
sp->sct_y = y;
sp->sct_dist_x = x;