summaryrefslogtreecommitdiffstats
path: root/mbbsd/dice.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/dice.c')
-rw-r--r--mbbsd/dice.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/mbbsd/dice.c b/mbbsd/dice.c
index 12572965..8fb0a9f9 100644
--- a/mbbsd/dice.c
+++ b/mbbsd/dice.c
@@ -1,4 +1,4 @@
-/* $Id: dice.c,v 1.7 2003/01/16 12:23:03 kcwu Exp $ */
+/* $Id$ */
#include "bbs.h"
#define DICE_TXT BBSHOME "/etc/dice.txt"
@@ -332,7 +332,7 @@ dice_main(void)
char input[10], data[256], ch;
dicedata_t table[256];
int bet[3], index, money = 0, i, ya = 0, j, total, sig = 0;
- FILE *winfp /* , *lostfp */ ;
+ FILE *winfp;
more(DICE_TXT, NA);
reload_money();
@@ -344,8 +344,7 @@ dice_main(void)
}
lockreturn0(DICE, LOCK_MULTI);
winfp = fopen(DICE_WIN, "a");
- /* lostfp = fopen(DICE_LOST,"a"); */
- if (!winfp /* || !lostfp */ )
+ if (!winfp)
return 0;
do {
@@ -433,7 +432,6 @@ dice_main(void)
if (i == 0) {
fclose(winfp);
- /* fclose(lostfp); */
unlockutmpmode();
return 0;
}
@@ -445,10 +443,6 @@ dice_main(void)
continue;
ya = bingo(flag, table[j].mybet);
if (ya == 0) {
- /*
- * sprintf(data, "%-15s ¿é¤F %-8d $", cuser.userid,
- * table[j].mymoney); fprintf(lostfp, "%s\n", data);
- */
continue;
}
demoney(table[j].mymoney * ya + table[j].mymoney);
@@ -482,7 +476,6 @@ dice_main(void)
input, 2, LCECHO);
} while (input[0] != 'n' && input[0] != 'N');
fclose(winfp);
- /* fclose(lostfp); */
unlockutmpmode();
return 0;
}