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
|
@ -44,11 +44,11 @@
|
|||
#include "unit.h"
|
||||
#include "update.h"
|
||||
|
||||
long money[MAXNOC];
|
||||
int money[MAXNOC];
|
||||
int pops[MAXNOC];
|
||||
long sea_money[MAXNOC];
|
||||
long lnd_money[MAXNOC];
|
||||
long air_money[MAXNOC];
|
||||
int sea_money[MAXNOC];
|
||||
int lnd_money[MAXNOC];
|
||||
int air_money[MAXNOC];
|
||||
int tpops[MAXNOC];
|
||||
|
||||
void
|
||||
|
@ -103,7 +103,7 @@ update_main(void)
|
|||
logerror("done preparing sectors.");
|
||||
logerror("producing for countries...");
|
||||
for (i = 0; i < MAXNOC; i++) {
|
||||
long p_sect[SCT_BUDG_MAX+1][2];
|
||||
int p_sect[SCT_BUDG_MAX+1][2];
|
||||
|
||||
memset(p_sect, 0, sizeof(p_sect));
|
||||
if (!(np = getnatp(i)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue