-didquit
This commit is contained in:
@@ -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) )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user