summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-25 15:24:04 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-25 15:24:04 +0800
commitd05ba58a0f1abb4e25795d6d083e1390ed166fc2 (patch)
treecc0d9e2a474adcdd4c97873a611262eec8d810cb /mbbsd/io.c
parentda8da8ab0be8b2100667405297e717c84670b4d8 (diff)
downloadpttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar.gz
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar.bz2
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar.lz
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar.xz
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.tar.zst
pttbbs-d05ba58a0f1abb4e25795d6d083e1390ed166fc2.zip
Go game add color board (dirty hack @@),
and allow throwing waterball in games. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2144 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 584faa29..129aba90 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -151,11 +151,23 @@ dogetch()
/* raise(SIGHUP); */
}
- if (len == 0)
+ if (len == 0){
+#ifdef OUTTA_TIMER
+ now = SHM->GV2.e.now;
+#else
+ now = time(0);
+#endif
return I_TIMEOUT;
+ }
- if (i_newfd && FD_ISSET(i_newfd, &readfds))
+ if (i_newfd && FD_ISSET(i_newfd, &readfds)){
+#ifdef OUTTA_TIMER
+ now = SHM->GV2.e.now;
+#else
+ now = time(0);
+#endif
return I_OTHERDATA;
+ }
}
#ifdef NOKILLWATERBALL
if( currutmp && currutmp->msgcount && !reentrant_write_request )