Use int instead of long for military reserves
Code dealing with reserves mixes int and long pretty haphazardly. Harmless, because practical reserves fit easily on any machine capable of running the server. Clean up anyway.
This commit is contained in:
parent
5d7f011900
commit
74b8b9932d
8 changed files with 13 additions and 13 deletions
|
@ -144,7 +144,7 @@ budg(void)
|
|||
}
|
||||
if (mil) {
|
||||
n = (mil - np->nat_reserve * money_res * etu) / (etu * money_mil);
|
||||
sprintf(in, "%d mil, %d res", n, (int)np->nat_reserve);
|
||||
sprintf(in, "%d mil, %d res", n, np->nat_reserve);
|
||||
pr("Military payroll\t\t%-32s%8d\n", in, -mil);
|
||||
expenses -= mil;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue