engine: client: fix TriColor4fRendermode

This commit is contained in:
Alibek Omarov 2024-07-28 20:50:20 +03:00
parent 90da9659d1
commit 4a5f34089d

View file

@ -3305,7 +3305,7 @@ Heavy legacy of Quake...
*/ */
void TriColor4fRendermode( float r, float g, float b, float a, int rendermode ) void TriColor4fRendermode( float r, float g, float b, float a, int rendermode )
{ {
if( clgame.ds.renderMode == kRenderTransAlpha ) if( rendermode == kRenderTransAlpha )
{ {
clgame.ds.triRGBA[3] = a / 255.0f; clgame.ds.triRGBA[3] = a / 255.0f;
ref.dllFuncs.Color4f( r, g, b, a ); ref.dllFuncs.Color4f( r, g, b, a );