diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-16 21:19:46 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-16 21:19:46 +0800 |
commit | bc7835b969bdcc3faca3dc6f6e4e08c9246abf85 (patch) | |
tree | 8198f212f1ca277c677b663190c7a1a884885bad /mbbsd/talk.c | |
parent | dea4689dc8a0ddd0aef678b2ae651039d048fa85 (diff) | |
download | pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar.gz pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar.bz2 pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar.lz pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar.xz pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.tar.zst pttbbs-bc7835b969bdcc3faca3dc6f6e4e08c9246abf85.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@28 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 7af93287..a00b49ef 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.10 2002/03/15 14:39:25 in2 Exp $ */ +/* $Id: talk.c,v 1.11 2002/03/16 13:18:59 ptt Exp $ */ #include <stdio.h> #include <string.h> #include <errno.h> @@ -443,7 +443,7 @@ void water_scr(water_t *tw, int which, char type) move(8 + which, 28);prints(" "); move(8 + which, 28); prints("\033[1;37;45m %c %-14s \033[0m", - tw->alive ? ' ' : 'x', + tw->uin ? ' ' : 'x', tw->userid); for( i = 0 ; i < 5 ; ++i ){ move(16 + i, 4); @@ -473,7 +473,7 @@ void water_scr(water_t *tw, int which, char type) // refresh(); move(8 + which, 28); prints("\033[1;37;44m %c %-13s¡@\033[0m", - tw->alive ? ' ' : 'x', + tw->uin ? ' ' : 'x', tw->userid); // refresh(); } @@ -501,10 +501,10 @@ void my_write2(void) if( swater[i] == NULL || swater[i]->pid == 0 ) break; else{ - if( swater[i]->alive && + if( swater[i]->uin && (swater[i]->pid != swater[i]->uin->pid || strcmp(swater[i]->userid, swater[i]->uin->userid)) ) - swater[i]->alive = 0; + swater[i]->uin = NULL; water_scr(swater[i], i, 0); } move(15, 4); @@ -513,11 +513,6 @@ void my_write2(void) move(22, 4); prints(" \033[1;35m¡º\033[1;36m¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w" "¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w\033[1;35m¡º\033[0m "); - /* - move(21, 4);prints(" "); - move(21, 4); - prints("\033[0m \033[1;37;46m%-66s\033[0m \n", t_last_write); - */ water_scr(swater[0], 0, 1); refresh(); @@ -552,7 +547,7 @@ void my_write2(void) done = 1; tw = swater[(int)which]; - if( !tw->alive ) + if( !tw->uin ) break; if( ch != '\r' && ch != '\n' ){ @@ -753,13 +748,15 @@ void t_display_new(void) for (i = 0; i<6 ; i++){ if(i>0) prints("%s%-13.13s\033[m", + !swater[i-1]->uin?"\033[1;33;45mX": swater[i-1]==water_which?"\033[1;33;47m ": - " ", + "", swater[i-1] ? swater[i-1]->userid:""); else prints("%s ¥þ³¡ \033[m", - water_which==&water[0]?"\033[1;33;45m ": - " "); + water_which==&water[0]?"\033[1;33;47m ": + " " + ); } } |