Use int instead of long to count people
Code dealing with counting people mixes int and long pretty haphazardly. Harmless, because practical populations fit into int easily on any machine capable of running the server. Clean up anyway.
This commit is contained in:
parent
948757cb0c
commit
5d7f011900
6 changed files with 12 additions and 12 deletions
|
@ -30,7 +30,7 @@
|
|||
* Dave Pare, 1994
|
||||
* Steve McClure, 1996
|
||||
* Doug Hay, 1998
|
||||
* Markus Armbruster, 2006-2011
|
||||
* Markus Armbruster, 2006-2013
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -45,11 +45,11 @@
|
|||
#include "update.h"
|
||||
|
||||
long money[MAXNOC];
|
||||
long pops[MAXNOC];
|
||||
int pops[MAXNOC];
|
||||
long sea_money[MAXNOC];
|
||||
long lnd_money[MAXNOC];
|
||||
long air_money[MAXNOC];
|
||||
long tpops[MAXNOC];
|
||||
int tpops[MAXNOC];
|
||||
|
||||
void
|
||||
update_main(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue