static void elevate_land(void);
static void elevate_sea(void);
static int map_symbol(int x, int y);
-static void fl_sct_init(coord x, coord y, s_char *ptr,
- time_t timestamp);
+static void fl_sct_init(coord, coord, struct sctstr *, time_t timestamp);
static void set_coastal_flags(void);
static void print_vars(void);
sct = sectsbuf;
for (y = 0; y < YSIZE; y++) {
for (x = 0; x < XSIZE; x++, sct++) {
- fl_sct_init(x * 2 + (y & 01), y, (s_char *)sct, current_time);
+ fl_sct_init(x * 2 + (y & 1), y, sct, current_time);
total = elev[sct->sct_x][y];
if (total < LANDMIN) {
sct->sct_type = SCT_WATER;
}
static void
-fl_sct_init(coord x, coord y, s_char *ptr, time_t timestamp)
+fl_sct_init(coord x, coord y, struct sctstr *sp, time_t timestamp)
{
- struct sctstr *sp = (struct sctstr *)ptr;
-
sp->ef_type = EF_SECTOR;
sp->sct_x = x;
sp->sct_y = y;
#include "optlist.h"
#include "version.h"
-static void file_sct_init(coord x, coord y, s_char *ptr,
+static void file_sct_init(coord, coord, struct sctstr *ptr,
time_t timestamp);
static void
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 & 01), y, (s_char *)&sct,
- current_time);
+ file_sct_init(x * 2 + (y & 1), y, &sct, current_time);
putsect(&sct);
}
}
}
static void
-file_sct_init(coord x, coord y, s_char *ptr, time_t timestamp)
+file_sct_init(coord x, coord y, struct sctstr *ptr, time_t timestamp)
{
struct sctstr *sp = (struct sctstr *)ptr;