From 9bc06a2fc4d7d4ce82da7323a567402d7688d3d3 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 1 Sep 2012 18:36:43 +0100 Subject: [PATCH] "Molten X" for mouseover with lava, fixes #165 --- src/game/GameView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 943e4af79..99ab0f29b 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1944,7 +1944,11 @@ void GameView::OnDraw() } else { - sampleInfo << c->ElementResolve(sample.particle.type) << ", Pressure: " << std::fixed << sample.AirPressure; + if(sample.particle.type == PT_LAVA && sample.particle.ctype > 0 && sample.particle.ctype < PT_NUM) + 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; } if(sample.particle.type == PT_PHOT)