mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Display 'invalid' ctypes as numbers in HUD
This commit is contained in:
@@ -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