Permalink
Browse files

show conv tmp as element name in hud

  • Loading branch information...
krawthekrow authored and jacob1 committed Jul 14, 2018
1 parent d42d748 commit bdc3f300baf483a4c2ab8f081335ab9ce2b97380
Showing with 14 additions and 1 deletion.
  1. +14 −1 src/gui/game/GameView.cpp
@@ -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)

0 comments on commit bdc3f30

Please sign in to comment.