forked from github/server
nein, anders...
This commit is contained in:
parent
1d09adb884
commit
66fbb409a0
|
@ -2074,7 +2074,6 @@ init_resources(void)
|
||||||
r_unit = new_resourcetype(&names[12], NULL, RTF_NONE);
|
r_unit = new_resourcetype(&names[12], NULL, RTF_NONE);
|
||||||
r_unit->uchange = res_changeperson;
|
r_unit->uchange = res_changeperson;
|
||||||
|
|
||||||
oldresourcetype[R_SWORD] = rt_find("sword");
|
|
||||||
oldresourcetype[R_SILVER] = r_silver;
|
oldresourcetype[R_SILVER] = r_silver;
|
||||||
oldresourcetype[R_AURA] = r_aura;
|
oldresourcetype[R_AURA] = r_aura;
|
||||||
oldresourcetype[R_PERMAURA] = r_permaura;
|
oldresourcetype[R_PERMAURA] = r_permaura;
|
||||||
|
@ -2082,6 +2081,11 @@ init_resources(void)
|
||||||
oldresourcetype[R_PEASANTS] = r_peasants;
|
oldresourcetype[R_PEASANTS] = r_peasants;
|
||||||
oldresourcetype[R_UNIT] = r_unit;
|
oldresourcetype[R_UNIT] = r_unit;
|
||||||
|
|
||||||
|
/* alte typen registrieren: */
|
||||||
|
init_olditems();
|
||||||
|
init_oldherbs();
|
||||||
|
init_oldpotions();
|
||||||
|
init_oldscores();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -2292,10 +2296,4 @@ register_resources(void)
|
||||||
|
|
||||||
/* make sure noone has deleted an I_ tpe without deleting the R_ type that goes with it! */
|
/* make sure noone has deleted an I_ tpe without deleting the R_ type that goes with it! */
|
||||||
assert((int)I_SACK_OF_CONSERVATION == (int)R_SACK_OF_CONSERVATION);
|
assert((int)I_SACK_OF_CONSERVATION == (int)R_SACK_OF_CONSERVATION);
|
||||||
|
|
||||||
/* alte typen registrieren: */
|
|
||||||
init_olditems();
|
|
||||||
init_oldherbs();
|
|
||||||
init_oldpotions();
|
|
||||||
init_oldscores();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -744,6 +744,9 @@ parse_resources(xmlDocPtr doc)
|
||||||
xmlNodeSetPtr nodes;
|
xmlNodeSetPtr nodes;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* make sure old items (used in requirements) are available */
|
||||||
|
init_resources();
|
||||||
|
|
||||||
/* reading eressea/resources/resource */
|
/* reading eressea/resources/resource */
|
||||||
resources = xmlXPathEvalExpression(BAD_CAST "/eressea/resources/resource", xpath);
|
resources = xmlXPathEvalExpression(BAD_CAST "/eressea/resources/resource", xpath);
|
||||||
nodes = resources->nodesetval;
|
nodes = resources->nodesetval;
|
||||||
|
@ -865,7 +868,8 @@ parse_resources(xmlDocPtr doc)
|
||||||
|
|
||||||
xmlXPathFreeContext(xpath);
|
xmlXPathFreeContext(xpath);
|
||||||
|
|
||||||
init_resources();
|
/* old resources now extern (for spells */
|
||||||
|
oldresourcetype[R_SWORD] = rt_find("sword");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue