From 774b917c0e069bc3eb87ff22e5522a58f698558f Mon Sep 17 00:00:00 2001 From: Ashnal Date: Thu, 2 Jul 2020 17:47:10 -0400 Subject: [PATCH] Correct total files to load off by one --- src/d_clisrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 15b155bf..a73df38a 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -1239,12 +1239,12 @@ static inline void CL_DrawConnectionStatus(void) // Loading progress V_DrawCenteredString(BASEVIDWIDTH/2, BASEVIDHEIGHT-24-32, V_YELLOWMAP, "Loading server addons..."); - totalfileslength = (INT32)((loadcompletednum/(double)(fileneedednum+1)) * 256); + totalfileslength = (INT32)((loadcompletednum/(double)(fileneedednum)) * 256); M_DrawTextBox(BASEVIDWIDTH/2-128-8, BASEVIDHEIGHT-24-8, 32, 1); V_DrawFill(BASEVIDWIDTH/2-128, BASEVIDHEIGHT-24, 256, 8, 175); V_DrawFill(BASEVIDWIDTH/2-128, BASEVIDHEIGHT-24, totalfileslength, 8, 160); V_DrawCenteredString(BASEVIDWIDTH/2, BASEVIDHEIGHT-24, V_20TRANS|V_MONOSPACE, - va(" %2u/%2u Files",loadcompletednum,fileneedednum+1)); + va(" %2u/%2u Files",loadcompletednum,fileneedednum)); } else if (lastfilenum != -1) {