We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5085b56 commit 09461b3Copy full SHA for 09461b3
Shared/mods/deathmatch/logic/CLatentSendQueue.cpp
@@ -268,9 +268,8 @@ void CLatentSendQueue::UpdateEstimatedDurations ( void )
268
{
269
uint uiUsingRate = MIN_SEND_RATE;
270
// Recalculate estimated times for all transfers
271
- for (auto iter = m_TxQueue.rbegin(); iter != m_TxQueue.rend(); ++iter)
+ for (auto& tx : m_TxQueue)
272
273
- auto& tx = *iter;
274
uiUsingRate = Max ( uiUsingRate, tx.uiRate );
275
tx.iEstSendDurationMsRemaining = tx.bufferRef->GetSize () * 1000 / uiUsingRate;
276
tx.iEstSendDurationMsUsed = 0;
0 commit comments