emp_config() silently truncates WORLD_X to even. Drop that. We could
flag odd WORLD_X as error, but we don't validate the other
configuration values, so why this one? Instead document it needs to
be even. WORLD_Y, too.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
*
* Known contributors to this file:
* Marc Olzheim, 2004
*
* Known contributors to this file:
* Marc Olzheim, 2004
- * Markus Armbruster, 2004-2014
+ * Markus Armbruster, 2004-2015
EMPCFBOTH("privip", privip, char *, NSC_STRING, KM_INTERNAL,
"Deities may connect from these IPs or networks, \"\" allows all")
EMPCFBOTH("WORLD_X", WORLD_X, int, NSC_INT, 0,
EMPCFBOTH("privip", privip, char *, NSC_STRING, KM_INTERNAL,
"Deities may connect from these IPs or networks, \"\" allows all")
EMPCFBOTH("WORLD_X", WORLD_X, int, NSC_INT, 0,
- "World size X dimension (enforced to be even by subtracting 1 if necessary)")
+ "World size X dimension, must be even")
EMPCFBOTH("WORLD_Y", WORLD_Y, int, NSC_INT, 0,
EMPCFBOTH("WORLD_Y", WORLD_Y, int, NSC_INT, 0,
- "World size Y dimension")
+ "World size Y dimension, must be even")
EMPCF_COMMENT("\n\n### Update policy\n\n"
"# Note: the update schedule is defined in the file schedule in the\n"
EMPCF_COMMENT("\n\n### Update policy\n\n"
"# Note: the update schedule is defined in the file schedule in the\n"
- WORLD_X &= ~1; /* force even */
if (set_paths(file) < 0)
return -1;
if (set_paths(file) < 0)
return -1;