This commit is contained in:
jl777
2019-02-02 07:52:41 -11:00
parent a30ff35a24
commit 7c6b1856d3
3 changed files with 2 additions and 5 deletions

View File

@@ -171,7 +171,7 @@ readchar(struct rogue_state *rs)
quit(0); quit(0);
return(27); return(27);
} }
if ( rs != 0 && rs->guiflag != 0 && rs->didquit == 0 ) if ( rs != 0 && rs->guiflag != 0 )
{ {
if ( rs->num < sizeof(rs->buffered) ) if ( rs->num < sizeof(rs->buffered) )
{ {

View File

@@ -411,8 +411,6 @@ playit(struct rogue_state *rs)
rs->needflush = 0; rs->needflush = 0;
} }
} }
if ( rs->didquit != 0 )
my_exit(0);
} }
endit(0); endit(0);
} }
@@ -446,7 +444,6 @@ quit(int sig)
refresh(); refresh();
score(purse, 1, 0); score(purse, 1, 0);
flushkeystrokes(rs); flushkeystrokes(rs);
//rs->didquit = (uint32_t)time(NULL);
my_exit(0); my_exit(0);
} }
else else

View File

@@ -317,7 +317,7 @@ struct rogue_state
{ {
uint64_t seed; uint64_t seed;
char *keystrokes; char *keystrokes;
uint32_t needflush,replaydone,didquit; uint32_t needflush,replaydone;
int32_t numkeys,ind,num,guiflag,counter; int32_t numkeys,ind,num,guiflag,counter;
char buffered[512]; char buffered[512];
}; };