From 1bada2810a076ebfc77c3d12df05e6496c26287b Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sun, 26 Apr 2026 19:36:07 -0400 Subject: [PATCH] cap download size to total size in the connection UI --- src/d_clisrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 7811b55b3..ffb43ee86 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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);