Use SECS_PER_DAY instead of literal 86400
This commit is contained in:
parent
2f05b844c1
commit
0563101703
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ loan_accept(struct ltcomstr *ltcp)
|
|||
player->dolcost -= lp->l_amtdue;
|
||||
lp->l_amtpaid = 0;
|
||||
(void)time(&lp->l_lastpay);
|
||||
lp->l_duedate = lp->l_ldur * 86400 + lp->l_lastpay;
|
||||
lp->l_duedate = lp->l_ldur * SECS_PER_DAY + lp->l_lastpay;
|
||||
lp->l_status = LS_SIGNED;
|
||||
if (!putloan(ltcp->num, lp)) {
|
||||
pr("Problem writing lp->to disk; get help!\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue