"# same directory as this file.")
EMPCFBOTH("etu_per_update", etu_per_update, int, NSC_INT, 0,
"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,
"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,
pr("By default, countries use %s coordinate system.\n",
(players_at_00) ? "the deity's" : "their own");
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("The current time is %19.19s.\n", ctime(&now));
pr("An update consists of %d empire time units.\n", etu_per_update);
int TRADE_DELAY = 7200; /* Seconds to bid on units */
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 update_window = 0; /* update window adjustment, in seconds */
int update_demand = UPD_DEMAND_NONE;
struct player *dp;
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;
if (update_get_schedule() < 0)
exit(1);