Skip to content

Commit 09461b3

Browse files
committed
Revert "Fix latent event iteration direction"
This reverts commit 5085b56.
1 parent 5085b56 commit 09461b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Shared/mods/deathmatch/logic/CLatentSendQueue.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,8 @@ void CLatentSendQueue::UpdateEstimatedDurations ( void )
268268
{
269269
uint uiUsingRate = MIN_SEND_RATE;
270270
// Recalculate estimated times for all transfers
271-
for (auto iter = m_TxQueue.rbegin(); iter != m_TxQueue.rend(); ++iter)
271+
for (auto& tx : m_TxQueue)
272272
{
273-
auto& tx = *iter;
274273
uiUsingRate = Max ( uiUsingRate, tx.uiRate );
275274
tx.iEstSendDurationMsRemaining = tx.bufferRef->GetSize () * 1000 / uiUsingRate;
276275
tx.iEstSendDurationMsUsed = 0;

0 commit comments

Comments
 (0)