diff --git a/include/econfig-spec.h b/include/econfig-spec.h index 4f88fd7a..216753dc 100644 --- a/include/econfig-spec.h +++ b/include/econfig-spec.h @@ -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) diff --git a/src/lib/common/wantupd.c b/src/lib/common/wantupd.c index 5ee70615..b1861dc8 100644 --- a/src/lib/common/wantupd.c +++ b/src/lib/common/wantupd.c @@ -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); } diff --git a/src/lib/global/constants.c b/src/lib/global/constants.c index 5b721e72..7b0e1624 100644 --- a/src/lib/global/constants.c +++ b/src/lib/global/constants.c @@ -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