"Multiplier for fuel to mobility calculation")
EMPCFBOTH("lost_items_timeout", lost_items_timeout, int, intset, 0,
"Seconds before a lost item is timed out of the database")
-EMPCFBOTH("last_demand_update", last_demand_update, long, longset, 0,
- "When was the last demand update occured")
EMPCFONLYC(NULL, emp_config_dummy, NULL, NULL, 0, NULL)
time(&cur);
-/*
- if (last_demand_update == 0){
- natp=getnatp(0);
- last_demand_update = natp->nat_reserve;
- }
-
- logerror("last_demand_update = %d\n",last_demand_update);
- logerror("update_between = %d\n",update_between());
- logerror("now = %d\n",cur);
- diff = (cur-(last_demand_update + update_between()));
- logerror("diff = %d\n",diff);
- if (diff >= 0){
- logerror("Forced update!\n");
- last_demand_update = cur;
- for (cn = 1; natp = getnatp(cn); cn++){
- if (((natp->nat_stat & NORM) == NORM) &&
- ((natp->nat_stat & GOD) != GOD)){
- natp->nat_missed = 0;
- }
- }
- return(1);
- }
-
- logerror("No forced update!\n");
-*/
if (0 == update_wantmin) {
logerror("no demand update allowed, wantmin = 0");
return (0);
return (0);
}
- last_demand_update = cur;
- natp = getnatp(0);
- /* A dumb way to do it, but simple */
- last_demand_update = natp->nat_reserve;
return (1);
}
/* opt_SLOW_WAR */
int War_Cost = 1000; /* Cost to declare war */
-/* opt_DEMANDUPDATE */
-long last_demand_update = 0; /* When was last demand update? */
-
-
/* opt_DRNUKE */
float drnuke_const = .33; /* research must be at least drnuke_const*tech */
/* in order to build a nuke. For example, if