loading inorganics was necesary

develop
simon 2010-04-26 17:48:51 +02:00
parent ff9a4d6091
commit 19895639ab
2 changed files with 13 additions and 3 deletions

@ -258,7 +258,7 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature)
if(mymat[i].typeD>=0)
{
if(mymat[i].typeD<=mat.metalMat.size())
sprintf(maintype, "%s bar", mat.metalMat[mymat[i].typeD].name);
sprintf(maintype, "%s bar", mat.metalMat[mymat[i].typeD].id);
else
strcpy(maintype, "invalid metal bar");
}
@ -464,7 +464,11 @@ int main (int numargs, char ** args)
}
mem = DF.getMemoryInfo();
// get stone matgloss mapping
if(!Materials->ReadInorganicMaterials(mat.metalMat))
{
cerr << "Can't get the inorganics types." << endl;
return 1;
}
if(!Materials->ReadCreatureTypesEx(creaturestypes))
{
cerr << "Can't get the creature types." << endl;

@ -74,7 +74,13 @@ int main (int numargs, char ** args)
return 1;
}
mem = DF.getMemoryInfo();
// get stone matgloss mapping
if(!Materials->ReadInorganicMaterials(mat.metalMat))
{
cerr << "Can't get the inorganics types." << endl;
return 1;
}
if(!Materials->ReadCreatureTypesEx(creaturestypes))
{
cerr << "Can't get the creature types." << endl;