From 1042291ad69df18c6050ce2939cd8a1ab20e7c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Sun, 24 Oct 2021 18:22:21 +0600 Subject: [PATCH] client: Don't change loading bar color Don't change loading bar color (fix yellow loading bar in Half-Rats Parasomnia, it should be white) --- engine/client/cl_game.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 259a5bc1..b0a4dcca 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -968,21 +968,9 @@ static void CL_DrawLoadingOrPaused( qboolean paused, float percent ) if( !paused ) { - float step, s2; - - ref.dllFuncs.Color4ub( 128, 128, 128, 255 ); + ref.dllFuncs.Color4ub( 255, 255, 255, 255 ); ref.dllFuncs.GL_SetRenderMode( kRenderTransTexture ); ref.dllFuncs.R_DrawStretchPic( x, y, width, height, 0, 0, 1, 1, cls.loadingBar ); - - step = (float)width / 100.0f; - right = (int)ceil( percent * step ); - s2 = (float)right / width; - width = right; - - ref.dllFuncs.Color4ub( 208, 152, 0, 255 ); - ref.dllFuncs.GL_SetRenderMode( kRenderTransTexture ); - ref.dllFuncs.R_DrawStretchPic( x, y, width, height, 0, 0, s2, 1, cls.loadingBar ); - ref.dllFuncs.Color4ub( 255, 255, 255, 255 ); } else {