From 2a15c1580f415b045fe126ccad26b09b4945d090 Mon Sep 17 00:00:00 2001 From: lwms Date: Thu, 2 May 2002 06:30:22 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@141 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 139492e9..6319ca50 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -1,4 +1,4 @@ -/* $Id: cal.c,v 1.4 2002/05/02 06:27:40 lwms Exp $ */ +/* $Id: cal.c,v 1.5 2002/05/02 06:30:22 lwms Exp $ */ #include #include #include @@ -373,7 +373,7 @@ int give_tax(int money) for( tax_rate = 0; tax_rate <= 3; tax_rate++ ) if ( money >= tax_bound[tax_rate] ) break; tax = money * ( 0.5 - tax_rate/10.0 ); - return tax; + return tax <= 0 ? 1 : tax; } int p_give() { -- cgit v1.2.3