|
Lines 102-108
static void rd_monster();
|
Link Here
|
|---|
|
#endif | #endif |
| |
#if !defined(ATARIST_MWC) | #if !defined(ATARIST_MWC) |
#ifdef MAC |
#if defined(MAC) || defined(__FreeBSD__) |
#include <time.h> | #include <time.h> |
#else | #else |
long time(); | long time(); |
|
Lines 331-337
static int sv_write()
|
Link Here
|
|---|
|
} | } |
| |
/* save the current time in the savefile */ | /* save the current time in the savefile */ |
#ifdef MAC |
#if defined(MAC) || defined(__FreeBSD__) |
l = time((time_t *)0); | l = time((time_t *)0); |
#else | #else |
l = time((long *)0); | l = time((long *)0); |
|
|
|| (version_min == 2 && patch_level >= 2)) | || (version_min == 2 && patch_level >= 2)) |
rd_long ((int32u *)&birth_date); | rd_long ((int32u *)&birth_date); |
else | else |
#ifdef MAC |
#if defined(MAC) || defined(__FreeBSD__) |
birth_date = time((time_t *)0); | birth_date = time((time_t *)0); |
#else | #else |
birth_date = time((long *)0); | birth_date = time((long *)0); |
|
Lines 1253-1259
scoreboard; it will not be scored again.
|
Link Here
|
|---|
|
/* rotate store inventory, depending on how old the save file */ | /* rotate store inventory, depending on how old the save file */ |
/* is foreach day old (rounded up), call store_maint */ | /* is foreach day old (rounded up), call store_maint */ |
/* calculate age in seconds */ | /* calculate age in seconds */ |
#ifdef MAC |
#if defined(MAC) || defined(__FreeBSD__) |
start_time = time((time_t *)0); | start_time = time((time_t *)0); |
#else | #else |
start_time = time((long *)0); | start_time = time((long *)0); |