From: divverent Date: Sun, 26 Apr 2009 19:38:05 +0000 (+0000) Subject: tiny progress indicator fix X-Git-Tag: svn-r421~83 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b49399255ce3a2be584a3c98217eb2a2cce24808;p=xonotic%2Fnetradiant.git tiny progress indicator fix git-svn-id: svn://svn.icculus.org/netradiant/trunk@337 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index ed218d6e..ae398324 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 (".");