Use int instead of long for money
Code dealing with money mixes int and long pretty haphazardly. Harmless, because practical amounts of money fit into int on any machine capable of running the server. Clean up anyway.
This commit is contained in:
parent
5ed02791f5
commit
5f46ced826
24 changed files with 73 additions and 73 deletions
|
@ -222,7 +222,7 @@ loan_accept(struct ltcomstr *ltcp)
|
|||
pr("%s no longer has the funds.\n", cname(ltcp->proposer));
|
||||
if (lp->l_amtdue <= 0)
|
||||
return RET_FAIL;
|
||||
pr("You may borrow $%ld at the same terms.\n", lp->l_amtdue);
|
||||
pr("You may borrow $%d at the same terms.\n", lp->l_amtdue);
|
||||
}
|
||||
lender->nat_money -= lp->l_amtdue;
|
||||
putnat(lender);
|
||||
|
@ -236,7 +236,7 @@ loan_accept(struct ltcomstr *ltcp)
|
|||
return RET_FAIL;
|
||||
}
|
||||
accpt(ltcp);
|
||||
pr("You are now $%ld richer (sort of).\n", lp->l_amtdue);
|
||||
pr("You are now $%d richer (sort of).\n", lp->l_amtdue);
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue