This commit is contained in:
jl777
2019-02-17 22:15:25 -11:00
parent fbdd8a6166
commit da2234e121
2 changed files with 12 additions and 15 deletions

View File

@@ -262,18 +262,15 @@ over:
case 'q': quaff(rs); case 'q': quaff(rs);
break; break;
when 'Q': when 'Q':
if ( rs->sleeptime == 1 ) after = FALSE;
{ q_comm = TRUE;
after = FALSE; quit(0);
q_comm = TRUE; if ( rs->guiflag != 0 && rs->needflush == 0 )
quit(0); rs->needflush = (uint32_t)time(NULL);
if ( rs->guiflag != 0 && rs->needflush == 0 ) q_comm = FALSE;
rs->needflush = (uint32_t)time(NULL); if ( rs->guiflag != 0 )
q_comm = FALSE; rogue_bailout(rs);
if ( rs->guiflag != 0 ) else rs->replaydone = (uint32_t)time(NULL);
rogue_bailout(rs);
else rs->replaydone = (uint32_t)time(NULL);
}
return; return;
when 'i': after = FALSE; inventory(rs,pack, 0); when 'i': after = FALSE; inventory(rs,pack, 0);
when 'I': after = FALSE; picky_inven(rs); when 'I': after = FALSE; picky_inven(rs);

View File

@@ -633,9 +633,9 @@ quit(int sig)
*/ */
if (!q_comm) if (!q_comm)
mpos = 0; mpos = 0;
getyx(curscr, oy, ox);
msg(rs,"really quit?");
} }
getyx(curscr, oy, ox);
msg(rs,"really quit?");
if (readchar(rs) == 'y') if (readchar(rs) == 'y')
{ {
if ( rs->guiflag != 0 ) if ( rs->guiflag != 0 )
@@ -653,7 +653,7 @@ quit(int sig)
else else
{ {
//score(rs,purse, 1, 0); //score(rs,purse, 1, 0);
//fprintf(stderr,"done!\n"); fprintf(stderr,"done!\n");
} }
} }
else else