(last_demand_update): Write-only. Removed.
This commit is contained in:
parent
b6d64279b9
commit
240eb32b76
3 changed files with 0 additions and 35 deletions
|
@ -296,8 +296,6 @@ EMPCFBOTH("fuel_mult", fuel_mult, int, intset, 0,
|
|||
"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)
|
||||
|
||||
|
|
|
@ -152,31 +152,6 @@ demand_check(void)
|
|||
|
||||
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);
|
||||
|
@ -211,10 +186,6 @@ demand_check(void)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -219,10 +219,6 @@ double buil_tower_bc = 7500.0; /* cash required to build a bridge tower */
|
|||
/* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue