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);
break;
when 'Q':
if ( rs->sleeptime == 1 )
{
after = FALSE;
q_comm = TRUE;
quit(0);
if ( rs->guiflag != 0 && rs->needflush == 0 )
rs->needflush = (uint32_t)time(NULL);
q_comm = FALSE;
if ( rs->guiflag != 0 )
rogue_bailout(rs);
else rs->replaydone = (uint32_t)time(NULL);
}
after = FALSE;
q_comm = TRUE;
quit(0);
if ( rs->guiflag != 0 && rs->needflush == 0 )
rs->needflush = (uint32_t)time(NULL);
q_comm = FALSE;
if ( rs->guiflag != 0 )
rogue_bailout(rs);
else rs->replaydone = (uint32_t)time(NULL);
return;
when 'i': after = FALSE; inventory(rs,pack, 0);
when 'I': after = FALSE; picky_inven(rs);

View File

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