forked from github/server
reading messages accidentally disabled
This commit is contained in:
parent
cb9eaf426c
commit
b16bbb9146
|
@ -163,7 +163,7 @@ struct building_type;
|
||||||
#define BACTION_VERSION 319 /* building action gets a param string */
|
#define BACTION_VERSION 319 /* building action gets a param string */
|
||||||
#define NOLASTORDER_VERSION 320 /* do not use lastorder */
|
#define NOLASTORDER_VERSION 320 /* do not use lastorder */
|
||||||
|
|
||||||
#define MIN_VERSION ALLIANCES_VERSION
|
#define MIN_VERSION CURSETYPE_VERSION
|
||||||
#define REGIONOWNERS_VERSION 400
|
#define REGIONOWNERS_VERSION 400
|
||||||
#define UGROUPS_VERSION 500 /* nicht aktivieren, nicht fertig */
|
#define UGROUPS_VERSION 500 /* nicht aktivieren, nicht fertig */
|
||||||
|
|
||||||
|
|
|
@ -1098,11 +1098,15 @@ parse_races(xmlDocPtr doc)
|
||||||
static int
|
static int
|
||||||
parse_messages(xmlDocPtr doc)
|
parse_messages(xmlDocPtr doc)
|
||||||
{
|
{
|
||||||
xmlXPathContextPtr xpath = xmlXPathNewContext(doc);
|
xmlXPathContextPtr xpath;
|
||||||
xmlXPathObjectPtr messages;
|
xmlXPathObjectPtr messages;
|
||||||
xmlNodeSetPtr nodes;
|
xmlNodeSetPtr nodes;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!gamecode_enabled) return 0;
|
||||||
|
|
||||||
|
xpath = xmlXPathNewContext(doc);
|
||||||
|
|
||||||
/* reading eressea/strings/string */
|
/* reading eressea/strings/string */
|
||||||
messages = xmlXPathEvalExpression(BAD_CAST "/eressea/messages/message", xpath);
|
messages = xmlXPathEvalExpression(BAD_CAST "/eressea/messages/message", xpath);
|
||||||
nodes = messages->nodesetval;
|
nodes = messages->nodesetval;
|
||||||
|
@ -1356,9 +1360,7 @@ register_xmlreader(void)
|
||||||
|
|
||||||
xml_register_callback(parse_strings);
|
xml_register_callback(parse_strings);
|
||||||
xml_register_callback(parse_prefixes);
|
xml_register_callback(parse_prefixes);
|
||||||
if (gamecode_enabled) {
|
xml_register_callback(parse_messages);
|
||||||
xml_register_callback(parse_messages);
|
|
||||||
}
|
|
||||||
|
|
||||||
xml_register_callback(parse_races);
|
xml_register_callback(parse_races);
|
||||||
xml_register_callback(parse_resources);
|
xml_register_callback(parse_resources);
|
||||||
|
|
Loading…
Reference in New Issue