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
|
@ -29,7 +29,7 @@
|
|||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1996
|
||||
* Markus Armbruster, 2004-2012
|
||||
* Markus Armbruster, 2004-2013
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -209,7 +209,7 @@ float trade_ally_cut = 0.10; /* 10% bonus for ally you trade with */
|
|||
|
||||
int torpedo_damage = 40; /* damage is X + 1dX + 1dX, so 40+1d40+1d40 */
|
||||
|
||||
long start_cash = 25000;
|
||||
int start_cash = 25000;
|
||||
|
||||
/* initial levels */
|
||||
float start_education = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue