Skip to content

Commit 5cdc04d

Browse files
Fix streaming size check after engineAddImage (#3566)
Fix streaming size check Co-authored-by: Pirulax <[email protected]>
1 parent 9615523 commit 5cdc04d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/mods/deathmatch/logic/CClientIMGManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ void CClientIMGManager::UpdateStreamerBufferSize()
129129
m_LargestFileSizeBlocks = CalculateLargestFile();
130130

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

0 commit comments

Comments
 (0)