(fina, repa, shark): Bankers never round down debts!

(repa, coll): Collect interest for the time the debtor is idling at
sub-prompts.
This commit is contained in:
Markus Armbruster 2004-08-20 08:47:00 +00:00
parent e7c9da21e5
commit bcc4a86944
4 changed files with 16 additions and 13 deletions

View file

@ -86,7 +86,7 @@ shark(void)
}
pr("That loan is worth $%.2f.\n", owed);
natp = getnatp(player->cnum);
payment = owed * (1.0 + loan.l_irate / 100.0);
payment = (long)ceil(owed * (1.0 + loan.l_irate / 100.0));
if (payment > natp->nat_money - 100.0) {
pr("You do not have enough to cover that loan\n");
return RET_FAIL;