summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-09-28 20:58:01 (GMT)
committer jacob1 <jfu614@gmail.com>2013-09-28 20:58:01 (GMT)
commit13d89ce9e15c7f4cc93809cfe0367993afa14b85 (patch)
tree6dbd3ab8dc42a47b188ed0ce8b0095141dfb366e /src/gui
parentc480c9ea19ba5757830d0bb2274ca6b142ef4b4b (diff)
downloadpowder-13d89ce9e15c7f4cc93809cfe0367993afa14b85.zip
powder-13d89ce9e15c7f4cc93809cfe0367993afa14b85.tar.gz
Fix tpt.get_numOfParts, add "C" next to temperature in HUD
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/game/GameView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp
index 6eb5830..12904f1 100644
--- a/src/gui/game/GameView.cpp
+++ b/src/gui/game/GameView.cpp
@@ -2092,7 +2092,7 @@ void GameView::OnDraw()
else
sampleInfo << " ()";
}
- sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f;
+ sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f << " C";
sampleInfo << ", Life: " << sample.particle.life;
sampleInfo << ", Tmp: " << sample.particle.tmp;
sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure;
@@ -2107,7 +2107,7 @@ void GameView::OnDraw()
sampleInfo << c->ElementResolve(sample.particle.type, sample.particle.ctype);
else
sampleInfo << c->ElementResolve(sample.particle.type, sample.particle.ctype);
- sampleInfo << ", Temp: " << std::fixed << sample.particle.temp -273.15f;
+ sampleInfo << ", Temp: " << std::fixed << sample.particle.temp - 273.15f << " C";
sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure;
}
if (sample.particle.type == PT_PHOT || sample.particle.type == PT_BIZR || sample.particle.type == PT_BIZRG || sample.particle.type == PT_BIZRS)