From 7477caa6ffc9f8a2e0dbd752387b5da737c9745c Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 19 Oct 2005 23:32:55 +0000 Subject: check money only if one really wants to order git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3226 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 4cab90f9..736f41fe 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -124,12 +124,6 @@ osong(void) unlockutmpmode(); return 0; } - if (cuser.money < 200) { - move(22, 0); - vmsg("點歌要200銀唷!...."); - unlockutmpmode(); - return 0; - } while (1) { char ans[4]; @@ -154,6 +148,13 @@ osong(void) } } + if (cuser.money < 200) { + move(22, 0); + vmsg("點歌要200銀唷!...."); + unlockutmpmode(); + return 0; + } + getdata_str(14, 0, "點歌者(可匿名): ", sender, sizeof(sender), DOECHO, cuser.userid); getdata(15, 0, "點給(可匿名): ", receiver, sizeof(receiver), DOECHO); -- cgit v1.2.3