show conv tmp as element name in hud
This commit is contained in:
parent
d42d7486e7
commit
bdc3f300ba
@ -2325,7 +2325,20 @@ void GameView::OnDraw()
|
||||
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
|
||||
sampleInfo << ", Life: " << sample.particle.life;
|
||||
if (sample.particle.type != PT_RFRG && sample.particle.type != PT_RFGL)
|
||||
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
||||
{
|
||||
if (sample.particle.type == PT_CONV)
|
||||
{
|
||||
String elemName = c->ElementResolve(
|
||||
TYP(sample.particle.tmp),
|
||||
ID(sample.particle.tmp)).FromAscii();
|
||||
if (elemName == "")
|
||||
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
||||
else
|
||||
sampleInfo << ", Tmp: " << elemName;
|
||||
}
|
||||
else
|
||||
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
||||
}
|
||||
|
||||
// only elements that use .tmp2 show it in the debug HUD
|
||||
if (type == PT_CRAY || type == PT_DRAY || type == PT_EXOT || type == PT_LIGH || type == PT_SOAP || type == PT_TRON || type == PT_VIBR || type == PT_VIRS || type == PT_WARP || type == PT_LCRY || type == PT_CBNW || type == PT_TSNS || type == PT_DTEC || type == PT_LSNS || type == PT_PSTN || type == PT_LDTC)
|
||||
|
Reference in New Issue
Block a user