Fix message queue progress bar for floating point changed

This commit is contained in:
Benau 2019-02-05 16:01:51 +08:00
parent f86b2657c1
commit 0bc4201bf9

View File

@ -241,7 +241,7 @@ public:
Message::draw(dt);
m_display_timer = 9999999.9f;
GUIEngine::getSkin()->drawProgressBarInScreen(&m_swc, m_area,
m_progress_value.load());
(float)m_progress_value.load() / 100.0f);
video::SColor color(255, 0, 0, 0);
GUIEngine::getFont()->draw(m_message, m_area, color, true, true);
if (m_progress_value.load() >= 100)