(s_p_etu): econfig key no longer used, remove.

This commit is contained in:
Markus Armbruster 2007-07-15 09:59:52 +00:00
parent 4bd19812af
commit ab55ea7381
4 changed files with 0 additions and 14 deletions

View file

@ -106,11 +106,6 @@ EMPCF_COMMENT("\n\n### Update policy\n\n"
"# same directory as this file.") "# same directory as this file.")
EMPCFBOTH("etu_per_update", etu_per_update, int, NSC_INT, 0, EMPCFBOTH("etu_per_update", etu_per_update, int, NSC_INT, 0,
"Number of ETUs per update") "Number of ETUs per update")
EMPCFBOTH("s_p_etu", s_p_etu, int, NSC_INT, 0,
"Seconds per ETU")
EMPCF_COMMENT("# FIXME get rid of this!\n"
"# Until then, set it so that s_p_etu * etu_per_update seconds equals\n"
"# the time between scheduled updates.")
EMPCFBOTH("update_window", update_window, int, NSC_INT, 0, EMPCFBOTH("update_window", update_window, int, NSC_INT, 0,
"Time window the update will occur in after the update time, in seconds") "Time window the update will occur in after the update time, in seconds")
EMPCFBOTH("pre_update_hook", pre_update_hook, char *, NSC_STRING, KM_INTERNAL, EMPCFBOTH("pre_update_hook", pre_update_hook, char *, NSC_STRING, KM_INTERNAL,

View file

@ -61,8 +61,6 @@ vers(void)
pr("By default, countries use %s coordinate system.\n", pr("By default, countries use %s coordinate system.\n",
(players_at_00) ? "the deity's" : "their own"); (players_at_00) ? "the deity's" : "their own");
pr("\n"); pr("\n");
pr("An Empire time unit is %d second%s long.\n",
s_p_etu, s_p_etu != 1 ? "s" : "");
pr("Use the 'update' command to find out the time of the next update.\n"); pr("Use the 'update' command to find out the time of the next update.\n");
pr("The current time is %19.19s.\n", ctime(&now)); pr("The current time is %19.19s.\n", ctime(&now));
pr("An update consists of %d empire time units.\n", etu_per_update); pr("An update consists of %d empire time units.\n", etu_per_update);

View file

@ -54,7 +54,6 @@ int MARK_DELAY = 7200; /* Seconds to bid on commodities */
int TRADE_DELAY = 7200; /* Seconds to bid on units */ int TRADE_DELAY = 7200; /* Seconds to bid on units */
int m_m_p_d = 1440; /* max mins of play per day (per country) */ int m_m_p_d = 1440; /* max mins of play per day (per country) */
int s_p_etu = 10; /* seconds per Empire Time Unit */
int etu_per_update = 60; /* # of etu's per update */ int etu_per_update = 60; /* # of etu's per update */
int update_window = 0; /* update window adjustment, in seconds */ int update_window = 0; /* update window adjustment, in seconds */
int update_demand = UPD_DEMAND_NONE; int update_demand = UPD_DEMAND_NONE;

View file

@ -69,12 +69,6 @@ update_init(void)
struct player *dp; struct player *dp;
int stacksize; int stacksize;
if (s_p_etu <= 0) {
logerror("bad value for s_p_etu (%d)", s_p_etu);
s_p_etu = 2 * 60;
logerror("setting s_p_etu to %d", s_p_etu);
}
update_schedule_anchor = (time(NULL) + 59) / 60 * 60; update_schedule_anchor = (time(NULL) + 59) / 60 * 60;
if (update_get_schedule() < 0) if (update_get_schedule() < 0)
exit(1); exit(1);