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 NOLASTORDER_VERSION 320 /* do not use lastorder */
|
||||
|
||||
#define MIN_VERSION ALLIANCES_VERSION
|
||||
#define MIN_VERSION CURSETYPE_VERSION
|
||||
#define REGIONOWNERS_VERSION 400
|
||||
#define UGROUPS_VERSION 500 /* nicht aktivieren, nicht fertig */
|
||||
|
||||
|
|
|
@ -1098,11 +1098,15 @@ parse_races(xmlDocPtr doc)
|
|||
static int
|
||||
parse_messages(xmlDocPtr doc)
|
||||
{
|
||||
xmlXPathContextPtr xpath = xmlXPathNewContext(doc);
|
||||
xmlXPathContextPtr xpath;
|
||||
xmlXPathObjectPtr messages;
|
||||
xmlNodeSetPtr nodes;
|
||||
int i;
|
||||
|
||||
if (!gamecode_enabled) return 0;
|
||||
|
||||
xpath = xmlXPathNewContext(doc);
|
||||
|
||||
/* reading eressea/strings/string */
|
||||
messages = xmlXPathEvalExpression(BAD_CAST "/eressea/messages/message", xpath);
|
||||
nodes = messages->nodesetval;
|
||||
|
@ -1356,9 +1360,7 @@ register_xmlreader(void)
|
|||
|
||||
xml_register_callback(parse_strings);
|
||||
xml_register_callback(parse_prefixes);
|
||||
if (gamecode_enabled) {
|
||||
xml_register_callback(parse_messages);
|
||||
}
|
||||
|
||||
xml_register_callback(parse_races);
|
||||
xml_register_callback(parse_resources);
|
||||
|
|
Loading…
Reference in New Issue