/[LeafOK_CVS]/lbbs/utils/game/money.c
ViewVC logotype

Annotation of /lbbs/utils/game/money.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri May 6 15:50:23 2005 UTC (20 years, 10 months ago) by sysadm
Branch: MAIN
CVS Tags: lbbs_1-0-0-0_MIL
Content type: text/x-csrc
*** empty log message ***

1 sysadm 1.1 #include "bbs.h"
2    
3     int inmoney(unsigned int money) {
4     if(BBS_user_money + money < 400000000)
5     BBS_user_money += money ;
6     else
7     BBS_user_money = 400000000;
8     return BBS_user_money;
9     }
10    
11     int demoney(unsigned int money) {
12     if(BBS_user_money > money )
13     BBS_user_money -= money;
14     else
15     BBS_user_money = 0;
16     return BBS_user_money;
17     }

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1