Closing the terminal while watching a game did not update the # of watchers.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@555 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2010-05-05 17:13:18 +00:00
parent 6581664456
commit f11bf73dd8
1 changed files with 8 additions and 7 deletions

View File

@ -192,9 +192,10 @@ int
ttyread (FILE * fp, Header * h, char **buf, int pread)
{
long offset;
int kb = kbhit();
if (kbhit())
{
if (kb == ERR) return READ_QUIT;
else if (kb) {
const int c = dgl_getch();
const int action = ttyplay_keyboard_action(c);
if (action != READ_DATA)