forked from github/server
eliminate xml reading of produceexp chance
This commit is contained in:
parent
8a95ea0c00
commit
d65e9aaf94
|
@ -2064,9 +2064,6 @@ static int parse_main(xmlDocPtr doc)
|
||||||
if (nodes->nodeNr > 0) {
|
if (nodes->nodeNr > 0) {
|
||||||
xmlNodePtr node = nodes->nodeTab[0];
|
xmlNodePtr node = nodes->nodeTab[0];
|
||||||
|
|
||||||
global.producexpchance =
|
|
||||||
(float)xml_fvalue(node, "learningbydoing", 1.0 / 3);
|
|
||||||
|
|
||||||
propValue = xmlGetProp(node, BAD_CAST "name");
|
propValue = xmlGetProp(node, BAD_CAST "name");
|
||||||
if (propValue != NULL) {
|
if (propValue != NULL) {
|
||||||
global.gamename = _strdup((const char *)propValue);
|
global.gamename = _strdup((const char *)propValue);
|
||||||
|
|
Loading…
Reference in New Issue