--- diag.c.orig 2002-05-30 16:04:11.000000000 -0500 +++ diag.c 2014-04-20 14:21:54.000000000 -0500 @@ -31,10 +31,10 @@ /* for the character attributes */ - lprintf("\n\nPlayer attributes:\n\nHit points: %2d(%2d)",(long)c[HP],(long)c[HPMAX]); - lprintf("\ngold: %d Experience: %d Character level: %d Level in caverns: %d", + lprintf(3,"\n\nPlayer attributes:\n\nHit points: %2d(%2d)",(long)c[HP],(long)c[HPMAX]); + lprintf(5,"\ngold: %d Experience: %d Character level: %d Level in caverns: %d", (long)c[GOLD],(long)c[EXPERIENCE],(long)c[LEVEL],(long)level); - lprintf("\nTotal types of monsters: %d",(long)MAXMONST+8); + lprintf(2,"\nTotal types of monsters: %d",(long)MAXMONST+8); lprcat("\f\nHere's the dungeon:\n\n"); @@ -42,7 +42,7 @@ for (j=0; j to save game\n",fname); + lcreat((char*)0); lprintf(2,"\nCan't open file <%s> to save game\n",fname); nosignal=0; return(-1); } @@ -200,7 +200,7 @@ cursors(); lprcat("\nRestoring . . ."); lflush(); if (lopen(fname) <= 0) { - lcreat((char*)0); lprintf("\nCan't open file <%s>to restore game\n",fname); + lcreat((char*)0); lprintf(2,"\nCan't open file <%s>to restore game\n",fname); nap(2000); c[GOLD]=c[BANKACCOUNT]=0; died(-265); return; } @@ -209,7 +209,7 @@ if (beenhere[k]) lrfill((char*)&cell[k*MAXX*MAXY],sizeof(struct cel)*MAXY*MAXX); - lrfill((char*)&c[0],100*sizeof(long)); gtime = lrint(); + lrfill((char*)&c[0],100*sizeof(long)); gtime = lrint_x(); level = c[CAVELEVEL] = lgetc(); playerx = lgetc(); playery = lgetc(); lrfill((char*)iven,26); lrfill((char*)ivenarg,26*sizeof(short)); @@ -240,7 +240,7 @@ } time(&zzz); - initialtime = zzz-lrint(); + initialtime = zzz-lrint_x(); fstat(fd,&filetimes); /* get the creation and modification time of file */ lrfill((char*)&zzz,sizeof(long)); zzz += 6; if (filetimes.st_ctime > zzz) fsorry(); /* file create time */ @@ -248,7 +248,7 @@ if (c[HP]<0) { died(284); return; } /* died a post mortem death */ oldx = oldy = 0; - i = lrint(); /* inode # */ + i = lrint_x(); /* inode # */ if (i && (filetimes.st_ino!=i)) fsorry(); lrclose(); if (strcmp(fname,ckpfile) == 0)