diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-08 10:37:03 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-08 10:37:03 +0800 |
commit | 392a7553d8beda885a9af2e529e35c48fc78c706 (patch) | |
tree | df1aa18b3bf792bfcca230f7a896605fe0064677 /mbbsd/gamble.c | |
parent | 735c0af69f7d5f547d7f714fe47881b513b91fa8 (diff) | |
download | pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.gz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.bz2 pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.lz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.xz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.zst pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.zip |
- change money name to macro for better isolation
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r-- | mbbsd/gamble.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index 6fd3ca68..ec959c2d 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -312,7 +312,7 @@ openticket(int bid) "開獎結果: %s \n\n" "所有金額: %d 元 \n" "中獎比例: %d張/%d張 (%f)\n" - "每張中獎彩票可得 %d 枚P幣 \n\n", + "每張中獎彩票可得 %d " MONEYNAME "幣 \n\n", Cdatelite(&now), betname[bet], total * price, ticket[bet], total, (float)ticket[bet] / total, money); @@ -335,13 +335,13 @@ openticket(int bid) while (fscanf(fp1, "%s %d %d\n", userid, &mybet, &i) != EOF) { if (bet == 98 && mybet >= 0 && mybet < count) { if (fp) - fprintf(fp, "%s 買了 %d 張 %s, 退回 %d 枚P幣\n" + fprintf(fp, "%s 買了 %d 張 %s, 退回 %d 枚" MONEYNAME "幣\n" ,userid, i, betname[mybet], money * i); snprintf(buf, sizeof(buf), "%s 賭場退錢! $ %d", bh->brdname, money * i); } else if (mybet == bet) { if (fp) - fprintf(fp, "恭喜 %s 買了%d 張 %s, 獲得 %d 枚P幣\n" + fprintf(fp, "恭喜 %s 買了%d 張 %s, 獲得 %d 枚" MONEYNAME "幣\n" ,userid, i, betname[mybet], money * i); snprintf(buf, sizeof(buf), "%s 中獎咧! $ %d", bh->brdname, money * i); } else |