summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-01 22:29:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-01 22:29:14 +0800
commita0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad (patch)
tree366b453194e20f98230ac7928f94e245c175202b /mbbsd
parenta5cf62f62f6dc6e9114f778f7050c0f96886e5d5 (diff)
downloadpttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar.gz
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar.bz2
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar.lz
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar.xz
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.tar.zst
pttbbs-a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad.zip
- add warning on famous games
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3956 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/card.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mbbsd/card.c b/mbbsd/card.c
index 765c9c8e..5f5a1530 100644
--- a/mbbsd/card.c
+++ b/mbbsd/card.c
@@ -640,7 +640,8 @@ ten_helf(void)
int
g_ten_helf(void)
{
- char buf[3];
+ char buf[3];
+ int times = 0;
setutmpmode(TENHALF);
while (1) {
@@ -649,6 +650,14 @@ g_ten_helf(void)
outs("您的錢不夠唷!去多發表些有意義的文章再來~~~");
return 0;
}
+
+ if (times++ % 5 == 0)
+ {
+ move(b_lines-2, 0); clrtoeol();
+ outs(ANSI_COLOR(1;31)
+ "警告: 本遊戲由 PttGames 看板評鑑為極度黑店,請小心!" ANSI_RESET);
+ }
+
getdata(b_lines - 1, 0,
ANSI_COLOR(1;37) "確定要玩十點半嗎 一次十元唷?(Y/N)?[N]" ANSI_RESET,
buf, 3, LCECHO);