Skip to content

Commit

Permalink
show conv tmp as element name in hud
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Jul 22, 2018
1 parent d42d748 commit bdc3f30
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/gui/game/GameView.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit bdc3f30

Please sign in to comment.