add COAL subtypes in MaterialInfo::getToken

develop
jj 2012-07-04 17:31:41 +02:00
parent 15cfc1d00b
commit cdd711efa4
1 changed files with 6 additions and 0 deletions

@ -293,6 +293,12 @@ std::string MaterialInfo::getToken()
switch (mode) { switch (mode) {
case Builtin: case Builtin:
if (material->id == "COAL") {
if (index == 0)
return "COAL:COKE";
else if (index == 1)
return "COAL:CHARCOAL";
}
return material->id; return material->id;
case Inorganic: case Inorganic:
return "INORGANIC:" + inorganic->id; return "INORGANIC:" + inorganic->id;