static void elevate_land(void);
static void elevate_sea(void);
static int map_symbol(int x, int y);
-static void fl_sct_init(coord, coord, struct sctstr *, time_t timestamp);
+static void fl_sct_init(coord, coord, struct sctstr *);
static void set_coastal_flags(void);
static void print_vars(void);
{
struct sctstr *sct;
int c, x, y, total;
- time_t current_time = time(NULL);
/* sct = §s[0][0]; */
sct = sectsbuf;
for (y = 0; y < YSIZE; y++) {
for (x = 0; x < XSIZE; x++, sct++) {
- fl_sct_init(x * 2 + (y & 1), y, sct, current_time);
+ fl_sct_init(x * 2 + (y & 1), y, sct);
total = elev[sct->sct_x][y];
if (total < LANDMIN) {
sct->sct_type = SCT_WATER;
}
static void
-fl_sct_init(coord x, coord y, struct sctstr *sp, time_t timestamp)
+fl_sct_init(coord x, coord y, struct sctstr *sp)
{
sp->ef_type = EF_SECTOR;
sp->sct_x = x;
sp->sct_road = 0;
sp->sct_rail = 0;
sp->sct_defense = 0;
- sp->sct_timestamp = timestamp;
sp->sct_coastal = 1;
}
#include "trade.h"
#include "version.h"
-static void file_sct_init(coord, coord, struct sctstr *ptr,
- time_t timestamp);
+static void file_sct_init(coord, coord, struct sctstr *ptr);
static void
print_usage(char *program_name)
int opt;
char *config_file = NULL;
int force = 0;
- time_t current_time = time(NULL);
while ((opt = getopt(argc, argv, "e:fhv")) != EOF) {
switch (opt) {
for (j = 0; j < MAXNOR; j++) {
realm.r_realm = j;
realm.r_uid = (i * MAXNOR) + j;
- realm.r_timestamp = current_time;
putrealm(&realm);
}
}
memset(&sct, 0, sizeof(sct));
for (y = 0; y < WORLD_Y; y++) {
for (x = 0; x < WORLD_X / 2; x++) {
- file_sct_init(x * 2 + (y & 1), y, &sct, current_time);
+ file_sct_init(x * 2 + (y & 1), y, &sct);
putsect(&sct);
}
}
}
static void
-file_sct_init(coord x, coord y, struct sctstr *ptr, time_t timestamp)
+file_sct_init(coord x, coord y, struct sctstr *ptr)
{
struct sctstr *sp = (struct sctstr *)ptr;
sp->sct_y = y;
sp->sct_dist_x = x;
sp->sct_dist_y = y;
- sp->sct_timestamp = timestamp;
sp->sct_newtype = sp->sct_type = SCT_WATER;
sp->sct_coastal = 1;
}