From b49399255ce3a2be584a3c98217eb2a2cce24808 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 26 Apr 2009 19:38:05 +0000 Subject: [PATCH] tiny progress indicator fix git-svn-id: svn://svn.icculus.org/netradiant/trunk@337 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/common/threads.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index ed218d6..ae39832 100644 --- a/tools/quake3/common/threads.c +++ b/tools/quake3/common/threads.c @@ -60,12 +60,17 @@ int GetThreadWork (void) } f = 40*dispatch / workcount; - if (f != oldf) + if(f < oldf) { + Sys_Printf("warning: progress went backwards (should never happen)\n"); oldf = f; + } + while(f > oldf) + { + ++oldf; if (pacifier) { - if(f % 4 == 0) + if(oldf % 4 == 0) Sys_Printf("%i", f / 4); else Sys_Printf ("."); -- 2.39.2