]> git.pond.sub.org Git - empserver/commitdiff
(last_demand_update): Write-only. Removed.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Aug 2004 09:35:38 +0000 (09:35 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Aug 2004 09:35:38 +0000 (09:35 +0000)
include/econfig-spec.h
src/lib/common/wantupd.c
src/lib/global/constants.c

index 4f88fd7a8451586ec4e9abbe732a708028b5aa45..216753dc306dbcc74ae64f224135986a7fbe6dee 100644 (file)
@@ -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)
 
index 5ee7061517b8a2ea657b130b5f28baae2f4460f8..b1861dc86b05959a28a495da9ec7d7350b3cba54 100644 (file)
@@ -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);
 }
 
index 5b721e72c3cddbf56ae7aa800cb31d6a23b9f004..7b0e162482324ee6ab3aab5869dcbc8ff38c3e15 100644 (file)
@@ -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