From 2273233b712b7ec70499097eb8338b0ce0f14777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 10 Nov 2020 17:54:39 +0100 Subject: [PATCH] Display 'invalid' ctypes as numbers in HUD --- src/gui/game/GameView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index c10057e87..006bfc6c0 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2169,8 +2169,8 @@ void GameView::OnDraw() sampleInfo << " (" << c->ElementResolve(ctype, sample.particle.tmp) << ")"; else if (c->IsValidElement(ctype)) sampleInfo << " (" << c->ElementResolve(ctype, -1) << ")"; - else - sampleInfo << " ()"; + else if (ctype) + sampleInfo << " (" << ctype << ")"; } sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C"; sampleInfo << ", Life: " << sample.particle.life;