Skip to content

Commit

Permalink
Fix streaming size check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Jul 14, 2024
1 parent 8e72db1 commit 0ab9584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Client/mods/deathmatch/logic/CClientIMGManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ void CClientIMGManager::UpdateStreamerBufferSize()
m_LargestFileSizeBlocks = CalculateLargestFile();

// Only update if necessary, otherwise leave it be [User might've set it manually - we don't want to touch that]
if (const auto s = g_pGame->GetStreaming(); m_LargestFileSizeBlocks > s->GetStreamingBufferSize()) {
if (const auto s = g_pGame->GetStreaming(); m_LargestFileSizeBlocks * 2048 > s->GetStreamingBufferSize())
{
s->SetStreamingBufferSize(m_LargestFileSizeBlocks);
}
}

0 comments on commit 0ab9584

Please sign in to comment.