cap download size to total size in the connection UI

This commit is contained in:
minenice55 authored and Alug committed 2026-04-29 17:44:49 +02:00
1 parent f6a6d71ba5
commit 5650c54776
1 file changed
+1 -1
+1 -1
View File
@@ -1491,8 +1491,8 @@ static void CL_DrawConnectionStatus(void)
static char tempname[28];
fileneeded_t *file = &fileneeded[filedownload.current];
char *filename = file->filename;
UINT32 currentsize = file->currentsize;
UINT32 totalsize = file->totalsize;
UINT32 currentsize = min(file->currentsize, file->totalsize);
// Draw the bottom box.
M_DrawTextBox(BASEVIDWIDTH/2-128-8, BASEVIDHEIGHT-58-8, 32, 1);