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
|
@ -136,9 +136,9 @@ coll(void)
|
|||
} else {
|
||||
(void)time(&loan.l_lastpay);
|
||||
owed -= pay;
|
||||
loan.l_amtdue = (long)owed;
|
||||
loan.l_amtdue = (int)owed;
|
||||
pay += loan.l_amtpaid;
|
||||
loan.l_amtpaid = pay;
|
||||
loan.l_amtpaid = (int)pay;
|
||||
wu(0, loan.l_lonee,
|
||||
"%s seized %s in partial payment of loan %d.\n",
|
||||
cname(player->cnum),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue