From bdee73ce36ba8d0781e0256fec404120654cf726 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 28 Sep 2015 19:36:02 -1000 Subject: [PATCH] clamped progress factor --- hecl/driver/ToolExtract.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hecl/driver/ToolExtract.hpp b/hecl/driver/ToolExtract.hpp index de650a0fb..36ed9b22b 100644 --- a/hecl/driver/ToolExtract.hpp +++ b/hecl/driver/ToolExtract.hpp @@ -191,6 +191,7 @@ public: [&lineIdx](const HECL::SystemChar* message, const HECL::SystemChar* submessage, int lidx, float factor) { + factor = std::max(0.0f, std::min(1.0f, factor)); int iFactor = factor * 100.0; if (XTERM_COLOR) HECL::Printf(_S("" HIDE_CURSOR ""));