From cf615c323f708d475f694f4fc37aa418aaf72654 Mon Sep 17 00:00:00 2001 From: jBot-42 Date: Sat, 17 Oct 2015 18:18:19 -0700 Subject: [PATCH 1/2] Show Tmp2 in HUD for elements that use it --- src/gui/game/GameView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 0bdb1767ea..242db0da2c 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2278,6 +2278,12 @@ void GameView::OnDraw() sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f << " C"; sampleInfo << ", Life: " << sample.particle.life; sampleInfo << ", Tmp: " << sample.particle.tmp; + + if (sample.particle.type == PT_CRAY || sample.particle.type == PT_DRAY || sample.particle.type == PT_EXOT || sample.particle.type == PT_LIGH || sample.particle.type == PT_PIPE || sample.particle.type == PT_SOAP || sample.particle.type == PT_STOR || sample.particle.type == PT_TRON || sample.particle.type == PT_VIBR || sample.particle.type == PT_VIRS || sample.particle.type == PT_WARP) { + + sampleInfo << ", Tmp2: " << sample.particle.tmp2; + } + sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; } else From 6ee0bc4cdad91bc3d577b7f413e7aa6019557e44 Mon Sep 17 00:00:00 2001 From: jBot-42 Date: Sun, 18 Oct 2015 18:36:22 -0700 Subject: [PATCH 2/2] remove stor and pipe --- src/gui/game/GameView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 242db0da2c..ec6ac40867 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2279,7 +2279,7 @@ void GameView::OnDraw() sampleInfo << ", Life: " << sample.particle.life; sampleInfo << ", Tmp: " << sample.particle.tmp; - if (sample.particle.type == PT_CRAY || sample.particle.type == PT_DRAY || sample.particle.type == PT_EXOT || sample.particle.type == PT_LIGH || sample.particle.type == PT_PIPE || sample.particle.type == PT_SOAP || sample.particle.type == PT_STOR || sample.particle.type == PT_TRON || sample.particle.type == PT_VIBR || sample.particle.type == PT_VIRS || sample.particle.type == PT_WARP) { + if (sample.particle.type == PT_CRAY || sample.particle.type == PT_DRAY || sample.particle.type == PT_EXOT || sample.particle.type == PT_LIGH || sample.particle.type == PT_SOAP || sample.particle.type == PT_TRON || sample.particle.type == PT_VIBR || sample.particle.type == PT_VIRS || sample.particle.type == PT_WARP) { sampleInfo << ", Tmp2: " << sample.particle.tmp2; }