Display 'invalid' ctypes as numbers in HUD

This commit is contained in:
Tamás Bálint Misius 2020-11-10 17:54:39 +01:00
parent 88f97ff2ec
commit 2273233b71
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -2169,8 +2169,8 @@ void GameView::OnDraw()
sampleInfo << " (" << c->ElementResolve(ctype, sample.particle.tmp) << ")";
else if (c->IsValidElement(ctype))
sampleInfo << " (" << c->ElementResolve(ctype, -1) << ")";
else
sampleInfo << " ()";
else if (ctype)
sampleInfo << " (" << ctype << ")";
}
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
sampleInfo << ", Life: " << sample.particle.life;