tiny progress indicator fix

git-svn-id: svn://svn.icculus.org/netradiant/trunk@337 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-04-26 19:38:05 +00:00
parent 07e8057ae2
commit b49399255c

View File

@ -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 (".");