diff options
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index c101543..97a8634 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1924,18 +1924,18 @@ void GameView::OnDraw() std::stringstream sampleInfo; sampleInfo.precision(2); if(sample.particle.type) - { + { if(showDebug) { sampleInfo << c->ElementResolve(sample.particle.type); if(sample.particle.ctype > 0 && sample.particle.ctype < PT_NUM) sampleInfo << " (" << c->ElementResolve(sample.particle.ctype) << ")"; else - sampleInfo << " ()"; - sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; + sampleInfo << " ()"; sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f; sampleInfo << ", Life: " << sample.particle.life; sampleInfo << ", Tmp: " << sample.particle.tmp; + sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; } else { @@ -1943,12 +1943,17 @@ void GameView::OnDraw() sampleInfo << "Molten " << c->ElementResolve(sample.particle.ctype); else sampleInfo << c->ElementResolve(sample.particle.type); - sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f; + sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; } if(sample.particle.type == PT_PHOT) wavelengthGfx = sample.particle.ctype; } + else if (sample.WallType) + { + sampleInfo << c->WallName(sample.WallType); + sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; + } else { sampleInfo << "Empty, Pressure: " << std::fixed << sample.AirPressure; |
