649cd09245
-- The game is set in Moria and the goal is to kill off the balrog. Apart from this, the game is almost completely based on Dungeons & Dragons. The game is a true classic and every true gamer should have played it. It was originally written by Robert Alan Koeneke with some help from Jimmy Wayne Todd. Further development of the game has almost ceased, but The Pits of Angband, which is based on its code, is still very much in development. WWW: http://www-math.bgsu.edu/~grabine/moria.html
39 lines
1012 B
Plaintext
39 lines
1012 B
Plaintext
$OpenBSD: patch-source_save_c,v 1.1.1.1 2001/07/04 16:57:50 lebel Exp $
|
|
--- source/save.c.orig Wed Jul 4 11:31:30 2001
|
|
+++ source/save.c Wed Jul 4 11:32:25 2001
|
|
@@ -105,7 +105,6 @@ static void rd_monster();
|
|
#ifdef MAC
|
|
#include <time.h>
|
|
#else
|
|
-long time();
|
|
#endif
|
|
#else
|
|
char *malloc();
|
|
@@ -334,7 +333,7 @@ static int sv_write()
|
|
#ifdef MAC
|
|
l = time((time_t *)0);
|
|
#else
|
|
- l = time((long *)0);
|
|
+ l = time((time_t *)0);
|
|
#endif
|
|
if (l < start_time)
|
|
{
|
|
@@ -1032,7 +1031,7 @@ int *generate;
|
|
#ifdef MAC
|
|
birth_date = time((time_t *)0);
|
|
#else
|
|
- birth_date = time((long *)0);
|
|
+ birth_date = time((time_t *)0);
|
|
#endif
|
|
}
|
|
if ((c = getc(fileptr)) == EOF || (l & 0x80000000L))
|
|
@@ -1256,7 +1255,7 @@ scoreboard; it will not be scored again.
|
|
#ifdef MAC
|
|
start_time = time((time_t *)0);
|
|
#else
|
|
- start_time = time((long *)0);
|
|
+ start_time = time((time_t *)0);
|
|
#endif
|
|
/* check for reasonable values of time here ... */
|
|
if (start_time < time_saved)
|