Declare all configuration variables in optlist.h. Include that
instead of declaring them all over the place. This uncovered type errors: (s_p_etu, adj_update): Defined long, sometimes declared int. Kills big endian machines where sizeof(long) != sizeof(int). Change to int. (set_option, delete_option, optstrset, intset, floatset, doubleset, longset, optionset, optiondel, worldxset): Change linkage to static.
This commit is contained in:
parent
80aae5b8e6
commit
8cd0160176
62 changed files with 143 additions and 258 deletions
|
@ -58,14 +58,6 @@ union item_u {
|
|||
int
|
||||
scuttle_tradeship(struct shpstr *sp, int interactive)
|
||||
{
|
||||
extern int trade_1_dist; /* less than this gets no money */
|
||||
extern int trade_2_dist; /* less than this gets trade_1 money */
|
||||
extern int trade_3_dist; /* less than this gets trade_2 money */
|
||||
extern float trade_1; /* return on trade_1 distance */
|
||||
extern float trade_2; /* return on trade_2 distance */
|
||||
extern float trade_3; /* return on trade_3 distance */
|
||||
extern float trade_ally_bonus; /* 20% bonus for trading with allies */
|
||||
extern float trade_ally_cut; /* 10% bonus for ally you trade with */
|
||||
float cash = 0;
|
||||
float ally_cash = 0;
|
||||
int dist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue