This commit is contained in:
jl777
2019-02-02 03:19:52 -11:00
parent 9b9bae114e
commit e25d05fd85
3 changed files with 6 additions and 4 deletions

View File

@@ -179,7 +179,8 @@ score(int amount, int flags, char monst)
else if (prflags == 2)
{
fflush(stdout);
(void) fgets(prbuf,10,stdin);
if ( fgets(prbuf,10,stdin) != 0 )
fprintf(stderr,"fgets error\n");
if (prbuf[0] == 'd')
{
for (sc2 = scp; sc2 < endp - 1; sc2++)
@@ -270,7 +271,8 @@ death(char monst)
score(purse, amulet ? 3 : 0, monst);
printf("[Press return to continue]");
fflush(stdout);
(void) fgets(prbuf,10,stdin);
if ( fgets(prbuf,10,stdin) != 0 )
;
my_exit(0);
}