diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 03:35:18 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 03:35:18 +0800 |
commit | 4e1ad2af155038106cd14a7f5deeee5771b3a531 (patch) | |
tree | e813b8f55e370ac55aba06c310c648f7e3531a4e /mbbsd/card.c | |
parent | 2ec15646e35a5a49bea7eff28963c906afc5fc16 (diff) | |
download | pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.gz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.bz2 pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.lz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.xz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.zst pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.zip |
* fix bug: incorrect user's tmp buf filename.
* don't test upper case if getdata with LCECHO flag
* add some comment
* some small code revise
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/card.c')
-rw-r--r-- | mbbsd/card.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/card.c b/mbbsd/card.c index c3b33d08..5735c4c6 100644 --- a/mbbsd/card.c +++ b/mbbsd/card.c @@ -477,7 +477,7 @@ card_double_ask(void) if (card_get_money() < JACK) return 0; getdata(20, 0, buf, buf2, sizeof(buf2), LCECHO); - if (buf2[0] == 'y' || buf2[0] == 'Y') + if (buf2[0] == 'y') return 1; return 0; } @@ -497,9 +497,9 @@ card_ask(void) if (buf2[0] == ' ') buf2[0] = buf2[1]; - if (buf2[0] == 'y' || buf2[0] == 'Y') + if (buf2[0] == 'y') return 1; - if (buf2[0] == 'q' || buf2[0] == 'Q') + if (buf2[0] == 'q') return -1; return 0; } |