(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:
parent
e7c9da21e5
commit
bcc4a86944
4 changed files with 16 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue