test of derivate system

develop
simon 2010-04-30 17:48:19 +02:00
parent 9f939687ec
commit bef2ba34e7
1 changed files with 6 additions and 1 deletions

@ -36,7 +36,12 @@ std::string getMatDesc(int32_t typeB, int32_t typeC, int32_t typeD)
if(typeC>=Materials->other.size())
return "stuff";
else
return Materials->other[typeC].rawname;
{
if(typeD==-1)
return std::string(Materials->other[typeC].rawname);
else
return std::string(Materials->other[typeC].rawname) + " derivate";
}
}
else
return Materials->inorganic[typeD].id;