Display 'invalid' ctypes as numbers in HUD
This commit is contained in:
parent
88f97ff2ec
commit
2273233b71
@ -2169,8 +2169,8 @@ void GameView::OnDraw()
|
|||||||
sampleInfo << " (" << c->ElementResolve(ctype, sample.particle.tmp) << ")";
|
sampleInfo << " (" << c->ElementResolve(ctype, sample.particle.tmp) << ")";
|
||||||
else if (c->IsValidElement(ctype))
|
else if (c->IsValidElement(ctype))
|
||||||
sampleInfo << " (" << c->ElementResolve(ctype, -1) << ")";
|
sampleInfo << " (" << c->ElementResolve(ctype, -1) << ")";
|
||||||
else
|
else if (ctype)
|
||||||
sampleInfo << " ()";
|
sampleInfo << " (" << ctype << ")";
|
||||||
}
|
}
|
||||||
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
|
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
|
||||||
sampleInfo << ", Life: " << sample.particle.life;
|
sampleInfo << ", Life: " << sample.particle.life;
|
||||||
|
Reference in New Issue
Block a user