From 78aa42032a5be6eaa024b5fa75201a00af3311c8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 21 Oct 2019 01:40:30 -0400 Subject: [PATCH] Console: Make truncation explicit within proc() Makes floating-point truncation explicit. --- hecl/lib/Console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hecl/lib/Console.cpp b/hecl/lib/Console.cpp index 30bfeaa0e..dc438ff33 100644 --- a/hecl/lib/Console.cpp +++ b/hecl/lib/Console.cpp @@ -189,11 +189,11 @@ void Console::init(boo::IWindow* window) { void Console::proc() { if (m_conHeight->isModified()) { - m_cachedConHeight = m_conHeight->toReal(); + m_cachedConHeight = float(m_conHeight->toReal()); } if (m_conSpeed->isModified()) { - m_cachedConSpeed = m_conSpeed->toReal(); + m_cachedConSpeed = float(m_conSpeed->toReal()); } if (m_state == State::Opened) {