diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-25 15:24:04 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-25 15:24:04 +0800 |
commit | d05ba58a0f1abb4e25795d6d083e1390ed166fc2 (patch) | |
tree | cc0d9e2a474adcdd4c97873a611262eec8d810cb /mbbsd/io.c | |
parent | da8da8ab0be8b2100667405297e717c84670b4d8 (diff) | |
download | pttbbs-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.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 ) |