tweak the value of haveDone as per BentMyWookie's suggestion
This commit is contained in:
parent
8805366e28
commit
fbc7cde718
|
@ -108,7 +108,7 @@ tr_cpEnsureDoneValid( const tr_completion * ccp )
|
||||||
cp->doneDirty = FALSE;
|
cp->doneDirty = FALSE;
|
||||||
|
|
||||||
for( i=0; i<info->pieceCount; ++i ) {
|
for( i=0; i<info->pieceCount; ++i ) {
|
||||||
if( !info->pieces[i].dnd ) {
|
if( tr_cpPieceIsComplete( ccp, i ) || !info->pieces[i].dnd ) {
|
||||||
total += info->pieceSize;
|
total += info->pieceSize;
|
||||||
have += cp->completeBlocks[ i ];
|
have += cp->completeBlocks[ i ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue